mirror of https://github.com/Fabio286/antares.git
fix(MySQL): missing error details on mysql importer with some exceptione
This commit is contained in:
parent
f120af25f4
commit
7b1cb4ff86
|
@ -47,7 +47,7 @@ export default class MySQLImporter extends BaseImporter {
|
||||||
catch (error) {
|
catch (error) {
|
||||||
this.emit('query-error', {
|
this.emit('query-error', {
|
||||||
sql: query,
|
sql: query,
|
||||||
message: error.sqlMessage,
|
message: error.sqlMessage || error.message,
|
||||||
sqlSnippet: error.sql,
|
sqlSnippet: error.sql,
|
||||||
time: new Date().getTime()
|
time: new Date().getTime()
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue