Do not throw on missing adapter, just display warning

This commit is contained in:
Anatoliy Chakkaev 2012-12-21 12:56:16 +04:00
parent ceff4278e8
commit 3038eb33fd
1 changed files with 1 additions and 1 deletions

View File

@ -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');
} }
} }