mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-10-16 23:49:06 +01:00
Improve ENOENT handling.
This commit is contained in:
1 parent
cb3488276d
commit
a2723452c2
2 files changed
+10
-5
No files matched your search
@@ -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