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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user