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

Reconnect process exit codes.

This commit is contained in:
hacksalot
2016-01-18 20:06:45 -05:00
parent 23cd52885b
commit 2f628f8564
9 changed files with 46 additions and 25 deletions

View File

@ -67,13 +67,12 @@ Implementation of the 'peek' verb for HackMyResume.
// safeLoadJSON can only return a READ error or a PARSE error
if( obj.ex ) {
if( obj.ex.operation === 'parse' )
this.err( HMSTATUS.parseError, obj.ex );
else {
var errCode = obj.ex.operation === 'parse' ? HMSTATUS.parseError : HMSTATUS.readError;
if( errCode === HMSTATUS.readError )
obj.ex.quiet = true;
this.err( HMSTATUS.readError, obj.ex );
}
}
this.setError( errCode, obj.ex );
this.err( errCode, obj.ex );
}
}, this);