Skip to content

Commit

Permalink
修复 require folder/index 时深层错误不能抛出的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Dec 4, 2016
1 parent 4b5b358 commit 27d092c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fibjs/src/sandbox/SandBox_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ result_t SandBox::require(exlib::string base, exlib::string id,
return 0;
}

if (hr != CALL_E_FILE_NOT_FOUND && hr != CALL_E_PATH_NOT_FOUND)
return hr;

fname = fullname + ".zip?" + PATH_SLASH + "index";
hr = require(base, fname, retVal, FILE_ONLY);
if (hr >= 0)
Expand Down

0 comments on commit 27d092c

Please sign in to comment.