better error msg

This commit is contained in:
AJ ONeal 2017-01-14 17:56:11 -05:00
parent 3e2ec810f5
commit 4a2dde22c8
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ function wrap(db, dir, dbsMap) {
db.all(sql, earr, function (err, results) { db.all(sql, earr, function (err, results) {
if (err) { if (err) {
console.error("[Error] add column '" + tablename + "'"); console.error("[Error] add column '" + tablename + "'");
console.error(err.stack); console.error(sql);
console.error(err.stack || new Error('stack').stack);
cb(err); cb(err);
return; return;
} }