@firestartr/cli 1.39.5 → 1.39.6

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.
Files changed (2) hide show
  1. package/build/index.js +14 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -300620,10 +300620,21 @@ async function tfWorkspacePlan(opts) {
300620
300620
  await addPlanStatusCheck(pull, tfOutput, 'completed');
300621
300621
  }
300622
300622
  catch (e) {
300623
- tfworkspaceplans_fDebug(`Error: ${e.message}`, 'error');
300624
- await addPlanStatusCheck(pull, e.message, 'completed', true);
300623
+ console.error(e);
300624
+ let message = '';
300625
+ if (e && typeof e === 'string') {
300626
+ message = e;
300627
+ }
300628
+ else if (e && typeof e === 'object' && e.message) {
300629
+ message = e.message;
300630
+ }
300631
+ else {
300632
+ message = 'An unknown error occurred';
300633
+ }
300634
+ tfworkspaceplans_fDebug(`Error: ${message}`, 'error');
300635
+ await addPlanStatusCheck(pull, message, 'completed', true);
300625
300636
  tfworkspaceplans_fDebug('Publishing plan');
300626
- await publishPlan(cr, e.message, prNumber, repo, owner);
300637
+ await publishPlan(cr, message, prNumber, repo, owner);
300627
300638
  }
300628
300639
  }
300629
300640
  function getCommandByStatus(status) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.39.5",
3
+ "version": "1.39.6",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",