Skip to content

Commit 251a9e7

Browse files
committed
Correct error handling.
If something goes wrong running the requirejs-config file, we would previously just crash with an unhandled promise rejection. Now we properly surface the error.
1 parent 6e2c0d9 commit 251a9e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ RequireJsResolverPlugin.prototype.apply = function(resolver) {
6565
} else {
6666
callback();
6767
}
68-
})
68+
}, err => {
69+
callback(err);
70+
});
6971
});
7072
};
7173

0 commit comments

Comments
 (0)