From 3038eb33fd0c0084da34b76c364fd418fa507f2c Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Fri, 21 Dec 2012 12:56:16 +0400 Subject: [PATCH] Do not throw on missing adapter, just display warning --- lib/schema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/schema.js b/lib/schema.js index 040eaf9f..3d0ee67a 100644 --- a/lib/schema.js +++ b/lib/schema.js @@ -73,7 +73,7 @@ function Schema(name, settings) { try { adapter = require('jugglingdb-' + name); } 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'); } }