We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471aa5e commit f0c98e4Copy full SHA for f0c98e4
src/shared/backend/services/cloudbuild.ts
@@ -122,6 +122,11 @@ export const waitForJobSuccess = async (
122
}
123
updateStatus({ jobStatus: jobStatus.status, startedAt });
124
125
+ if (jobStatus.status === "BUILD_ERROR") {
126
+ clearTimeout(timeoutId);
127
+ throw new Error("Build failed");
128
+ }
129
+
130
if (jobStatus.status === "BUILD_SUCCESS") {
131
clearTimeout(timeoutId);
132
return jobStatus;
0 commit comments