@glash/cli 0.2.14 → 0.2.15
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/commands/deploy.mjs +3 -1
- package/lib/version.mjs +1 -1
- package/package.json +1 -1
package/commands/deploy.mjs
CHANGED
|
@@ -224,7 +224,9 @@ export async function deploy({ flags }) {
|
|
|
224
224
|
}
|
|
225
225
|
if (['error', 'failed'].includes(status)) {
|
|
226
226
|
indicator.stop();
|
|
227
|
-
|
|
227
|
+
const lastError = [...(pipe.events ?? [])].reverse().find((ev) => ev.status === 'error' || ev.status === 'failed');
|
|
228
|
+
const detail = lastError?.message ? `: ${lastError.message}` : '';
|
|
229
|
+
return fail(`Deployment failed (${status})${detail}. Run \`glash logs ${dep.id}\` for details.`);
|
|
228
230
|
}
|
|
229
231
|
currentPhase = phaseFromPipeline(pipe, currentPhase);
|
|
230
232
|
pollDelayMs = nextPollDelay(pipe);
|
package/lib/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.15';
|
package/package.json
CHANGED