1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-07-09 11:41:07 +01:00

Improve validation and color-coding.

This commit is contained in:
devlinjd
2015-11-21 05:56:16 -05:00
parent e44239b24a
commit 9fbab27d73
3 changed files with 62 additions and 16 deletions

View File

@ -24,7 +24,7 @@ catch( ex ) {
function main() {
// Setup
var title = '*** FluentCV v' + PKG.version + ' ***';
var title = ('*** FluentCV v' + PKG.version + ' ***').bold;
if( process.argv.length <= 2 ) { logMsg(title); throw { fluenterror: 4 }; }
var a = ARGS( process.argv.slice(2) );
opts = getOpts( a );
@ -78,7 +78,7 @@ function handleError( ex ) {
var idx = msg.indexOf('Error: ');
var trimmed = idx === -1 ? msg : msg.substring( idx + 7 );
console.log( 'ERROR: ' + trimmed.toString() );
console.log( ('ERROR: ' + trimmed.toString()).red.bold );
process.exit( exitCode );
}