Skip to content

Commit

Permalink
Log email delivery errors in application insights exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudify committed Jun 28, 2020
1 parent 31b3eda commit 4634928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EmailNotificationActivity/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const getEmailNotificationActivityHandler = (
const error = sendResult.value;
// track the event of failed delivery
context.log.error(`${logPrefix}|ERROR=${error.message}`);
throw new Error("Error while sending email");
throw new Error(`Error while sending email: ${error.message}`);
}

context.log.verbose(`${logPrefix}|RESULT=SUCCESS`);
Expand Down

0 comments on commit 4634928

Please sign in to comment.