Skip to content

Commit

Permalink
Use ex.getLocalizedMessage() for cancel reason
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Aug 23, 2021
1 parent acccb85 commit c3e971e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dom-core/src/main/scala/org/http4s/dom/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ package object dom {
case Resource.ExitCase.Succeeded =>
rs.cancel(null)
case Resource.ExitCase.Errored(ex) =>
rs.cancel(ex.toString())
rs.cancel(ex.getLocalizedMessage())
case Resource.ExitCase.Canceled =>
rs.cancel(null)
}
Expand Down

0 comments on commit c3e971e

Please sign in to comment.