Skip to content

Commit 51fefc5

Browse files
fix(cli): ensure style dictionary verbose error stack is displayed (#3961)
1 parent a6b6b0e commit 51fefc5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/paragon-scripts.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@ const COMMANDS = {
267267
} catch (error) {
268268
// eslint-disable-next-line no-console
269269
console.error(chalk.red.bold('An error occurred:', error));
270+
if (error instanceof Error) {
271+
// eslint-disable-next-line no-console
272+
console.error(chalk.red(error.stack));
273+
}
270274
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'error', errorMsg: error.message });
271275
process.exit(1);
272276
}

0 commit comments

Comments
 (0)