Do not throw on missing adapter, just display warning
This commit is contained in:
parent
ceff4278e8
commit
3038eb33fd
|
@ -73,7 +73,7 @@ function Schema(name, settings) {
|
||||||
try {
|
try {
|
||||||
adapter = require('jugglingdb-' + name);
|
adapter = require('jugglingdb-' + name);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error('Adapter ' + name + ' is not installed, try\n npm install jugglingdb-' + name);
|
return console.log('\nWARNING: JugglingDB adapter "' + name + '" is not installed,\nso your models would not work, to fix run:\n\n npm install jugglingdb-' + name, '\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue