File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const SEPARATOR_PATTERN = Deno.build.os === "windows" ? "\\\\" : "/";
1414interface Revision {
1515 labels : Record < string , string > ;
1616 steps : { step : string } [ ] ;
17- status : "cancelled" ;
17+ status : "cancelled" | "failed" ;
1818}
1919
2020type 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 }
You can’t perform that action at this time.
0 commit comments