Skip to content

Commit cb153ae

Browse files
authored
Merge pull request #31 from pinanks/finalize-build-on-error
Output error when finalize build fails
2 parents 7435b66 + 9c350df commit cb153ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tasks/finalizeBuild.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
1111
await ctx.client.finalizeBuild(ctx.build.id, ctx.totalSnapshots, ctx.log);
1212
task.output = chalk.gray(`build url: ${ctx.build.url}`);
1313
task.title = 'Finalized build'
14-
} catch (error) {
15-
// log.debug(error)
14+
} catch (error: any) {
15+
ctx.log.debug(error.message);
16+
task.output = chalk.gray(error.message);
1617
throw new Error('Finalize build error');
1718
}
1819
},

0 commit comments

Comments
 (0)