mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30: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.');
|
msg = chalk.red.bold('ERROR: Validation failed and the --assert option was specified.');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.invalidTarget:
|
case HACKMYSTATUS.invalidFormat:
|
||||||
ex.data.forEach(function(d){
|
ex.data.forEach(function(d){
|
||||||
msg += chalk.red.bold('The ' + ex.theme.name + " theme doesn't support the " + d.format + " format.\n");
|
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,
|
pdfgeneration: 9,
|
||||||
missingPackageJSON: 10,
|
missingPackageJSON: 10,
|
||||||
invalid: 11,
|
invalid: 11,
|
||||||
invalidTarget: 12,
|
invalidFormat: 12,
|
||||||
notOnPath: 13
|
notOnPath: 13
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ Implementation of the 'generate' verb for HackMyResume.
|
|||||||
// Check for invalid outputs
|
// Check for invalid outputs
|
||||||
var inv = verifyOutputs( dst, theme );
|
var inv = verifyOutputs( dst, theme );
|
||||||
if( inv && inv.length ) {
|
if( inv && inv.length ) {
|
||||||
throw {fluenterror: HACKMYSTATUS.invalidTarget, data: inv, theme: theme};
|
throw {fluenterror: HACKMYSTATUS.invalidFormat, data: inv, theme: theme};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load input resumes...
|
// Load input resumes...
|
||||||
|
Loading…
Reference in New Issue
Block a user