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

Improve errors / tests consistency.

This commit is contained in:
hacksalot
2016-01-14 14:22:26 -05:00
parent 86af2a2c4f
commit c9ae2ffef3
7 changed files with 127 additions and 10 deletions

View File

@ -67,7 +67,7 @@ Definition of the ResumeFactory class.
// Load and parse the resume JSON
var info = _parse( src, opts, emitter );
if( info.error ) return info;
if( info.fluenterror ) return info;
// Determine the resume format: FRESH or JRS
var json = info.json;
@ -123,6 +123,8 @@ Definition of the ResumeFactory class.
inner: e, raw: rawData, file: fileName, shouldExit: false
};
eve && eve.err( ex.fluenterror, ex );
if( opts.throw ) throw ex;
return ex;
}
}