mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 08:20:11 +00:00
Rename "invalidTarget" error to "invalidFormat".
This commit is contained in:
parent
8d24087faa
commit
29c53af843
@ -132,7 +132,7 @@ Error-handling routines for HackMyResume.
|
||||
msg = chalk.red.bold('ERROR: Validation failed and the --assert option was specified.');
|
||||
break;
|
||||
|
||||
case HACKMYSTATUS.invalidTarget:
|
||||
case HACKMYSTATUS.invalidFormat:
|
||||
ex.data.forEach(function(d){
|
||||
msg += chalk.red.bold('The ' + ex.theme.name + " theme doesn't support the " + d.format + " format.\n");
|
||||
});
|
||||
|
@ -19,7 +19,7 @@ Status codes for HackMyResume.
|
||||
pdfgeneration: 9,
|
||||
missingPackageJSON: 10,
|
||||
invalid: 11,
|
||||
invalidTarget: 12,
|
||||
invalidFormat: 12,
|
||||
notOnPath: 13
|
||||
};
|
||||
|
||||
|
@ -50,7 +50,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
||||
// Check for invalid outputs
|
||||
var inv = verifyOutputs( dst, theme );
|
||||
if( inv && inv.length ) {
|
||||
throw {fluenterror: HACKMYSTATUS.invalidTarget, data: inv, theme: theme};
|
||||
throw {fluenterror: HACKMYSTATUS.invalidFormat, data: inv, theme: theme};
|
||||
}
|
||||
|
||||
// Load input resumes...
|
||||
|
Loading…
Reference in New Issue
Block a user