mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-02 12:27:08 +01:00
Improve ENOENT handling.
This commit is contained in:
@ -116,8 +116,10 @@ Definition of the ResumeFactory class.
|
||||
ex.handled = true;
|
||||
}
|
||||
|
||||
if( opts.throw ) throw ex;
|
||||
else return {
|
||||
// FS.readFileSync failed
|
||||
if( !rawData || opts.throw ) throw ex;
|
||||
|
||||
return {
|
||||
error: ex,
|
||||
raw: rawData,
|
||||
file: fileName
|
||||
|
Reference in New Issue
Block a user