better error msg
This commit is contained in:
parent
3e2ec810f5
commit
4a2dde22c8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue