Skip to content

Commit c4eb9e3

Browse files
authored
Merge pull request #63 from jaydp17/master
do not throw error on node v12 for custom MODULE_NOT_FOUND
2 parents 5332646 + e9b54b6 commit c4eb9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/migration-strategy/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function loadCustomizations(config) {
1313
return require(customPath);
1414
} catch (e) {
1515
// If module not found ignore, otherwise crash
16-
if (e.code !== 'MODULE_NOT_FOUND' || !e.message.endsWith(`'${customPath}'`)) {
16+
if (e.code !== 'MODULE_NOT_FOUND' || !(e.message.split('\n')[0].endsWith(`'${customPath}'`))) {
1717
throw e;
1818
}
1919

0 commit comments

Comments
 (0)