fix(MySQL): missing error details on mysql importer with some exceptione

This commit is contained in:
Fabio Di Stasio 2023-08-01 10:04:00 +02:00
parent f120af25f4
commit 7b1cb4ff86
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ export default class MySQLImporter extends BaseImporter {
catch (error) {
this.emit('query-error', {
sql: query,
message: error.sqlMessage,
message: error.sqlMessage || error.message,
sqlSnippet: error.sql,
time: new Date().getTime()
});