Skip to content

Commit

Permalink
Log error if there is one
Browse files Browse the repository at this point in the history
  • Loading branch information
mdirolf committed Jan 25, 2024
1 parent 589a32e commit 872fe3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/src/queueEmails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ async function getEmail(userId: string): Promise<string | undefined> {
try {
const user = await getUser(userId);
return user.email;
} catch {
} catch (e) {
console.log(e);
console.warn('error getting user ', userId);
return undefined;
}
Expand Down

0 comments on commit 872fe3c

Please sign in to comment.