优化错误打印

master
宇天 2021-06-24 18:13:37 +08:00
parent 38ece7993b
commit d81cba0b7a
2 changed files with 7 additions and 1 deletions

View File

@ -297,6 +297,12 @@ class SqlErr {
this.message = msg this.message = msg
this.sql = sql this.sql = sql
hideProperty(this, 'stack', msg) hideProperty(this, 'stack', msg)
console.error(
'-'.repeat(50),
'[Last Query SQL]: ' + sql,
`Query ${msg}`,
'-'.repeat(50)
)
} }
toString() { toString() {

View File

@ -1,6 +1,6 @@
{ {
"name": "mysqli", "name": "mysqli",
"version": "3.1.0", "version": "3.1.1",
"description": "MySQL tool", "description": "MySQL tool",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {