Skip to content

Commit

Permalink
Update node-src/tasks/gitInfo.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Gert Hengeveld <info@ghengeveld.nl>
  • Loading branch information
tmeasday and ghengeveld committed Aug 15, 2023
1 parent a49d334 commit b7b4462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node-src/tasks/gitInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ export const setGitInfo = async (ctx: Context, task: Task) => {

ctx.git = {
version: await getVersion(),
gitUserEmail: await getUserEmail(),
gitUserEmail: await getUserEmail().catch((e) => {
ctx.log.debug('Failed to retrieve Git user email', e);
return null;
}),
...commitAndBranchInfo,
};

Expand Down

0 comments on commit b7b4462

Please sign in to comment.