Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
battermann authored Dec 15, 2023
1 parent 7feed45 commit 04da9d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/5-internal/WPB-5312
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve error logs
4 changes: 2 additions & 2 deletions libs/wai-utilities/src/Network/Wai/Utilities/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ errorHandlers =
ZlibException _ ->
pure . Left $
Wai.mkError status500 "server-error" "Server Error",
Handler $ \(_ :: SomeException) ->
Handler $ \(e :: SomeException) ->
pure . Left $
Wai.mkError status500 "server-error" "Server Error"
Wai.mkError status500 "server-error" ("Server Error. " <> cs (displayException e))
]
{-# INLINE errorHandlers #-}

Expand Down

0 comments on commit 04da9d6

Please sign in to comment.