Skip to content

Commit c207afb

Browse files
committed
fix
1 parent 49848b8 commit c207afb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

publish.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const SEPARATOR_PATTERN = Deno.build.os === "windows" ? "\\\\" : "/";
1414
interface Revision {
1515
labels: Record<string, string>;
1616
steps: { step: string }[];
17-
status: "cancelled";
17+
status: "cancelled" | "failed";
1818
}
1919

2020
type Chunk =
@@ -349,11 +349,13 @@ export async function publish(
349349
await completionPromise.promise;
350350

351351
completionSpinner.stop();
352-
if (revision!.status === "cancelled") {
352+
if (revision!.status === "cancelled" || revision!.status === "failed") {
353353
console.log(
354-
`\n${
355-
red("✗")
356-
} The revision was cancelled.\n Please view the revision in the dashboard for more information.`,
354+
`\n${red("✗")} The revision ${
355+
revision!.status === "cancelled" ? "was " : ""
356+
}${
357+
revision!.status
358+
}.\n Please view the revision in the dashboard for more information.`,
357359
);
358360
Deno.exit(1);
359361
}

0 commit comments

Comments
 (0)