@powerhousedao/ph-cli 6.0.0-dev.92 → 6.0.0-dev.94

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/dist/src/cli.js CHANGED
@@ -395434,4 +395434,15 @@ async function main2() {
395434
395434
  await import_cmd_ts27.run(cli, args2);
395435
395435
  }
395436
395436
  }
395437
- await main2();
395437
+ await main2().catch((error49) => {
395438
+ const isDebug = process.argv.slice(2).includes("--debug");
395439
+ if (isDebug) {
395440
+ throw error49;
395441
+ }
395442
+ if (error49 instanceof Error) {
395443
+ console.error(error49.message);
395444
+ process.exit(1);
395445
+ } else {
395446
+ throw error49;
395447
+ }
395448
+ });