Skip to content

Commit

Permalink
Add notification failure error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-in-a-Jar committed Jan 8, 2024
1 parent 5dd9846 commit 719fee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/thurloe/dataaccess/HttpSendGridDAO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HttpSendGridDAO(samDao: SamDAO) extends SendGridDAO with LazyLogging {
else
throw new NotificationException(
StatusCodes.InternalServerError,
"Unable to send notification",
"Unable to send notification, unexpected error occurred: " + response.getMessage,
email.getTos.toSeq,
email.getFilters.getJSONObject("templates").getJSONObject("settings").getString("template_id")
)
Expand Down

0 comments on commit 719fee1

Please sign in to comment.