mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-23 00:40:10 +00:00
Tweak error messages.
Stay away from language like "please specify a valid input resume". The fluentcv fork can use corporate-speak. HackMyResume is more like a gremlin -- feed it, but never after midnight.
This commit is contained in:
parent
1bcc2f7d0c
commit
7a1eadb3fc
@ -29,17 +29,21 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.resumeNotFound:
|
case HACKMYSTATUS.resumeNotFound:
|
||||||
msg = 'Please '.guide + 'specify a valid input resume'.guide.bold +
|
msg = 'Please '.guide + 'feed me a resume'.guide.bold +
|
||||||
' in FRESH or JSON Resume format.'.guide;
|
' in FRESH or JSON Resume format.'.guide;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.missingCommand:
|
case HACKMYSTATUS.missingCommand:
|
||||||
msg = title + "\nPlease ".guide + "specify a command".guide.bold + " (".guide +
|
msg = title + "\nPlease ".guide + "give me a command".guide.bold +
|
||||||
Object.keys( FCMD.verbs ).map( function(v, idx, ar) {
|
" (".guide;
|
||||||
|
|
||||||
|
msg += Object.keys( FCMD.verbs ).map( function(v, idx, ar) {
|
||||||
return (idx === ar.length - 1 ? 'or '.guide : '') +
|
return (idx === ar.length - 1 ? 'or '.guide : '') +
|
||||||
v.toUpperCase().guide;
|
v.toUpperCase().guide;
|
||||||
}).join(', '.guide) + ").\n\n".guide +
|
}).join(', '.guide) + ").\n\n".guide;
|
||||||
FS.readFileSync( PATH.resolve(__dirname, '../use.txt'), 'utf8' ).info.bold;
|
|
||||||
|
msg += FS.readFileSync(
|
||||||
|
PATH.resolve(__dirname, '../use.txt'), 'utf8' ).info.bold;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.invalidCommand:
|
case HACKMYSTATUS.invalidCommand:
|
||||||
@ -48,7 +52,7 @@
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.resumeNotFoundAlt:
|
case HACKMYSTATUS.resumeNotFoundAlt:
|
||||||
msg = 'Please '.guide + 'specify a valid input resume'.guide.bold +
|
msg = 'Please '.guide + 'feed me a resume'.guide.bold +
|
||||||
' in either FRESH or JSON Resume format.'.guide;
|
' in either FRESH or JSON Resume format.'.guide;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user