@openedx/paragon 23.15.1 → 23.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/paragon-scripts.js +4 -0
- package/package.json +1 -1
package/bin/paragon-scripts.js
CHANGED
|
@@ -267,6 +267,10 @@ const COMMANDS = {
|
|
|
267
267
|
} catch (error) {
|
|
268
268
|
// eslint-disable-next-line no-console
|
|
269
269
|
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
|
+
}
|
|
270
274
|
sendTrackInfo('openedx.paragon.cli-command.used', { command, status: 'error', errorMsg: error.message });
|
|
271
275
|
process.exit(1);
|
|
272
276
|
}
|