Skip to content

Commit abf7dd7

Browse files
committed
Lots of complaints of missing build/Debug/nodegit
Hopefully this will give more accurate errors.
1 parent 9474379 commit abf7dd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

generate/templates/templates/nodegit.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@ var rawApi;
77
try {
88
rawApi = require("../build/Release/nodegit");
99
}
10-
catch (e) {
10+
catch (ex) {
1111
/* istanbul ignore next */
12+
if (ex.code !== "MODULE_NOT_FOUND") {
13+
throw ex;
14+
}
15+
1216
rawApi = require("../build/Debug/nodegit");
1317
}
1418

0 commit comments

Comments
 (0)