@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.
- package/build/index.js +14 -3
- 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
|
-
|
300624
|
-
|
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,
|
300637
|
+
await publishPlan(cr, message, prNumber, repo, owner);
|
300627
300638
|
}
|
300628
300639
|
}
|
300629
300640
|
function getCommandByStatus(status) {
|