Skip to content

Commit

Permalink
Fix rethrowing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wokalski authored and tsnobip committed Jun 11, 2022
1 parent 4d04903 commit d3520d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/file_generation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ try {
Printf.sprintf
{|
import("%s").catch(e => {
if (e.code !== "ERR_MODULE_NOT_FOUND") reject(e)
if (e.code !== "ERR_MODULE_NOT_FOUND") {
throw e;
}
});|}
import_path
in
Expand Down

0 comments on commit d3520d5

Please sign in to comment.