From 29c53af8434ca3e2175bdfec77e8b5eddac991fc Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 8 Jan 2016 10:09:46 -0500 Subject: [PATCH] Rename "invalidTarget" error to "invalidFormat". --- src/core/error-handler.js | 2 +- src/core/status-codes.js | 2 +- src/verbs/build.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/error-handler.js b/src/core/error-handler.js index 2c84d74..637206f 100644 --- a/src/core/error-handler.js +++ b/src/core/error-handler.js @@ -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"); }); diff --git a/src/core/status-codes.js b/src/core/status-codes.js index f3655fe..aade38b 100644 --- a/src/core/status-codes.js +++ b/src/core/status-codes.js @@ -19,7 +19,7 @@ Status codes for HackMyResume. pdfgeneration: 9, missingPackageJSON: 10, invalid: 11, - invalidTarget: 12, + invalidFormat: 12, notOnPath: 13 }; diff --git a/src/verbs/build.js b/src/verbs/build.js index 634a0e5..d6a5f55 100644 --- a/src/verbs/build.js +++ b/src/verbs/build.js @@ -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...