Skip to content

Commit 497b805

Browse files
authored
fix(postgres): add ERROR detail to output of migration (#1142)
1 parent 23afcf7 commit 497b805

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/helpers/view-helper.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ module.exports = {
3737

3838
this.log();
3939
console.error(`${clc.red('ERROR:')} ${message}`);
40+
if (error.original.detail) {
41+
console.error(`${clc.red('ERROR DETAIL:')} ${error.original.detail}`);
42+
}
43+
4044
extraMessages.forEach((message) =>
4145
console.error(`${clc.red('EXTRA MESSAGE:')} ${message}`)
4246
);

0 commit comments

Comments
 (0)