@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.
@@ -224,7 +224,9 @@ export async function deploy({ flags }) {
224
224
  }
225
225
  if (['error', 'failed'].includes(status)) {
226
226
  indicator.stop();
227
- return fail(`Deployment failed (${status}). Run \`glash logs ${dep.id}\` for details.`);
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.14';
1
+ export const VERSION = '0.2.15';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glash/cli",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "glashDB command-line interface — deploy projects, pull source + env, manage env vars.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://glashdb.com",