Skip to content

Commit 910f0bc

Browse files
authored
Merge pull request #600 from artemjackson/master
Added warning on plugin loading failure
2 parents 4cd5558 + fcffd62 commit 910f0bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
require('pkginfo')(module, 'version'); // jshint ignore:line
22
var fs = require('fs');
33
var path = require('path');
4+
var log = require('db-migrate-shared').log;
45

56
exports.dataType = require('db-migrate-shared').dataType;
67

@@ -53,7 +54,9 @@ module.exports.getInstance = function (isModule, options, callback) {
5354

5455
try {
5556
if (!options || !options.noPlugins) plugins = loadPlugins();
56-
} catch (ex) {}
57+
} catch (ex) {
58+
log.warn(ex);
59+
}
5760

5861
if (options && options.plugins) {
5962
plugins = Object.assign(plugins, options.plugins);

0 commit comments

Comments
 (0)