Fix last unhelpful debug message in db.js
This commit is contained in:
parent
c92faace52
commit
46fa6484a5
1 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,9 @@ Scholar.DB = new function(){
|
|||
var statement = statementQuery(sql,params);
|
||||
}
|
||||
catch (e){
|
||||
throw(db.lastErrorString);
|
||||
var dberr = (db.lastErrorString!='not an error')
|
||||
? ' [ERROR: ' + db.lastErrorString + ']' : '';
|
||||
throw(e + ' [QUERY: ' + sql + ']' + dberr);
|
||||
}
|
||||
|
||||
// No rows
|
||||
|
|
Loading…
Reference in a new issue