mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Fix: Exception when HMR is run without params.
This commit is contained in:
parent
a0c356941c
commit
e3cb949992
@ -6,6 +6,9 @@
|
|||||||
|
|
||||||
var HACKMYSTATUS = require('./status-codes')
|
var HACKMYSTATUS = require('./status-codes')
|
||||||
, PKG = require('../../package.json')
|
, PKG = require('../../package.json')
|
||||||
|
, FS = require('fs')
|
||||||
|
, FCMD = require('../hackmycmd')
|
||||||
|
, PATH = require('path')
|
||||||
, title = ('\n*** HackMyResume v' + PKG.version + ' ***').bold.white;
|
, title = ('\n*** HackMyResume v' + PKG.version + ' ***').bold.white;
|
||||||
|
|
||||||
var ErrorHandler = module.exports = {
|
var ErrorHandler = module.exports = {
|
||||||
@ -36,7 +39,7 @@
|
|||||||
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.join(__dirname, 'use.txt'), 'utf8' ).info.bold;
|
FS.readFileSync( PATH.resolve(__dirname, '../use.txt'), 'utf8' ).info.bold;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case HACKMYSTATUS.invalidCommand:
|
case HACKMYSTATUS.invalidCommand:
|
||||||
|
Loading…
Reference in New Issue
Block a user