1
0
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:
hacksalot
2018-01-29 02:04:00 -05:00
parent 12a14dadeb
commit 17259cedbf
19 changed files with 149 additions and 13 deletions

View File

@ -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
};
}

View File

@ -33,7 +33,9 @@ Status codes for HackMyResume.
invalidParamCount: 23,
missingParam: 24,
createError: 25,
validateError: 26
validateError: 26,
invalidOptionsFile: 27,
optionsFileNotFound: 28
};
}).call(this);