mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-11-20 23:45:11 +00:00
Improve errors / tests consistency.
This commit is contained in:
1 parent
86af2a2c4f
commit
c9ae2ffef3
7 files changed
+127
-10
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user