1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-23 05:37:23 +00:00

Rename "invalidTarget" error to "invalidFormat".

This commit is contained in:
hacksalot 2016-01-08 10:09:46 -05:00
parent 8d24087faa
commit 29c53af843
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -19,7 +19,7 @@ Status codes for HackMyResume.
pdfgeneration: 9,
missingPackageJSON: 10,
invalid: 11,
invalidTarget: 12,
invalidFormat: 12,
notOnPath: 13
};

View File

@ -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...