Skip to content

Commit

Permalink
fix(postgres): add ERROR detail to output of migration (sequelize#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer authored Sep 27, 2022
1 parent 23afcf7 commit 497b805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helpers/view-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ module.exports = {

this.log();
console.error(`${clc.red('ERROR:')} ${message}`);
if (error.original.detail) {
console.error(`${clc.red('ERROR DETAIL:')} ${error.original.detail}`);
}

extraMessages.forEach((message) =>
console.error(`${clc.red('EXTRA MESSAGE:')} ${message}`)
);
Expand Down

0 comments on commit 497b805

Please sign in to comment.