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

Refactor error handling (interim).

This commit is contained in:
hacksalot
2016-01-14 11:47:05 -05:00
parent 7765e85336
commit a9c685c6a4
5 changed files with 27 additions and 18 deletions

View File

@ -57,13 +57,13 @@ Definition of the Verb class.
/**
Fire the 'hmr:error' error event.
Handle an error condition.
*/
err: function( errorCode, payload, hot ) {
payload = payload || { };
payload.sub = payload.fluenterror = errorCode;
payload.throw = hot;
this.fire('error', payload);
this.fire( 'error', payload );
if( hot ) throw payload;
return true;
},