diff --git a/lib/utils.js b/lib/utils.js index 868502a..b5eada9 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -297,6 +297,12 @@ class SqlErr { this.message = msg this.sql = sql hideProperty(this, 'stack', msg) + console.error( + '-'.repeat(50), + '[Last Query SQL]: ' + sql, + `Query ${msg}`, + '-'.repeat(50) + ) } toString() { diff --git a/package.json b/package.json index ac66446..e032321 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mysqli", - "version": "3.1.0", + "version": "3.1.1", "description": "MySQL tool", "main": "index.js", "dependencies": {