From 4a2dde22c8ed5d1addbf9efef02e8a6ef6f60a7b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 14 Jan 2017 17:56:11 -0500 Subject: [PATCH] better error msg --- lib/dbwrap.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dbwrap.js b/lib/dbwrap.js index 92a14d6..45d0954 100644 --- a/lib/dbwrap.js +++ b/lib/dbwrap.js @@ -97,7 +97,8 @@ function wrap(db, dir, dbsMap) { db.all(sql, earr, function (err, results) { if (err) { console.error("[Error] add column '" + tablename + "'"); - console.error(err.stack); + console.error(sql); + console.error(err.stack || new Error('stack').stack); cb(err); return; }