Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh

Commit

When wrangler containers list does not answer in JSON, the deploy log shows what it said instead.

syntaqxcommitted Parentbcede63Browse files
1 file+4−10/1 viewed
+4−1
407407 out.line(`container ${app.name}: ${size || JSON.stringify(c).slice(0, 200)}; version ${app.version ?? "?"}; ${app.instances ?? "?"} instances; ${rollout}`);
408408 }
409409 } catch (error) {
410− out.line(`could not read the container applications: ${error.message ?? error}`);
410+ out.line(`could not read the container applications as JSON (${error.message ?? error}); wrangler said:`);
411+ const said = await wrangler(["containers", "list"], { cwd }).catch(() => ({ out: "" }));
412+ for (const line of said.out.split("
413+").filter((l) => l.trim()).slice(0, 40)) out.line(` ${line}`);
411414 }
412415 }
413416

Comments

Sign in to comment.