fixed error reporting problems

This commit is contained in:
Jan Prochazka
2023-02-25 20:25:27 +01:00
parent c817bf5911
commit 0c62349802
4 changed files with 20 additions and 25 deletions

View File

@@ -255,7 +255,7 @@ export class DataDuplicator {
);
}
} catch (err) {
logger.error({ err }, 'Failed duplicator job, rollbacking');
logger.error({ err }, `Failed duplicator job, rollbacking. ${err.message}`);
await runCommandOnDriver(this.pool, this.driver, dmp => dmp.rollbackTransaction());
return;
}