mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-03 04:47:07 +01:00
Detect bad option files supplied via --options.
This commit is contained in:
2
dist/core/fresh-theme.js
vendored
2
dist/core/fresh-theme.js
vendored
@ -50,7 +50,7 @@ Definition of the FRESHTheme class.
|
||||
themeInfo = loadSafeJson(themeFile);
|
||||
if (themeInfo.ex) {
|
||||
throw {
|
||||
fluenterror: themeInfo.ex.operation === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError,
|
||||
fluenterror: themeInfo.ex.op === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError,
|
||||
inner: themeInfo.ex.inner
|
||||
};
|
||||
}
|
||||
|
4
dist/core/status-codes.js
vendored
4
dist/core/status-codes.js
vendored
@ -33,7 +33,9 @@ Status codes for HackMyResume.
|
||||
invalidParamCount: 23,
|
||||
missingParam: 24,
|
||||
createError: 25,
|
||||
validateError: 26
|
||||
validateError: 26,
|
||||
invalidOptionsFile: 27,
|
||||
optionsFileNotFound: 28
|
||||
};
|
||||
|
||||
}).call(this);
|
||||
|
Reference in New Issue
Block a user