mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-03 12:57:08 +01:00
Detect bad option files supplied via --options.
This commit is contained in:
2
dist/verbs/peek.js
vendored
2
dist/verbs/peek.js
vendored
@ -80,7 +80,7 @@ Implementation of the 'peek' verb for HackMyResume.
|
||||
}
|
||||
pkgError = null;
|
||||
if (obj.ex) {
|
||||
errCode = obj.ex.operation === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError;
|
||||
errCode = obj.ex.op === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError;
|
||||
if (errCode === HMSTATUS.readError) {
|
||||
obj.ex.quiet = true;
|
||||
}
|
||||
|
2
dist/verbs/validate.js
vendored
2
dist/verbs/validate.js
vendored
@ -111,7 +111,7 @@ Implementation of the 'validate' verb for HackMyResume.
|
||||
ret.violations = validate.errors;
|
||||
}
|
||||
} else {
|
||||
if (obj.ex.operation === 'parse') {
|
||||
if (obj.ex.op === 'parse') {
|
||||
errCode = HMSTATUS.parseError;
|
||||
ret.status = 'broken';
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user