Adjust error handling / tests.

This commit is contained in:
hacksalot committed 2016-02-01 22:56:08 -05:00
1 parent 70f45d468d
commit fd39cc9fd9
10 files changed
+34 -23

No files matched your search

+8 -2
View File
@@ -157,8 +157,14 @@ initialize = ( ar, exitCallback ) ->
# Override the .missingArgument behavior
Command.prototype.missingArgument = (name) ->
if this.name() != 'new'
throw { fluenterror: HMSTATUS.resumeNotFound, quit: true }
_err.err
fluenterror:
if this.name() != 'new'
then HMSTATUS.resumeNotFound
else HMSTATUS.createNameMissing
, true
return
# Override the .helpInformation behavior
Command.prototype.helpInformation = ->