Skip to content

Commit d3520d5

Browse files
wokalskitsnobip
authored andcommitted
Fix rethrowing errors
1 parent 4d04903 commit d3520d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/file_generation.ml

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ try {
8585
Printf.sprintf
8686
{|
8787
import("%s").catch(e => {
88-
if (e.code !== "ERR_MODULE_NOT_FOUND") reject(e)
88+
if (e.code !== "ERR_MODULE_NOT_FOUND") {
89+
throw e;
90+
}
8991
});|}
9092
import_path
9193
in

0 commit comments

Comments
 (0)