We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c53d22e commit 1d3f30eCopy full SHA for 1d3f30e
packages/cli-build/src/finalize.js
@@ -20,8 +20,11 @@ export const finalize = command('finalize', {
20
21
// rely on the parallel nonce to cause the API to return the current running build for the nonce
22
let { data: build } = await percy.client.createBuild({ cliStartTime: percy.cliStartTime });
23
- await percy.client.finalizeBuild(build.id, { all: true });
24
-
+ try {
+ await percy.client.finalizeBuild(build.id, { all: true });
25
+ } catch (error) {
26
+ exit(1, 'Percy build failed during finalize', error.message);
27
+ }
28
let { 'build-number': number, 'web-url': url } = build.attributes;
29
log.info(`Finalized build #${number}: ${url}`);
30
});
0 commit comments