Closed barisbalic closed 8 years ago
Documentation suggests you can write something like this:
rescue_from :all do status 500 "Oh noes." end
However an exception is raised, expressing that the Cowboy adapter was expecting to receive a plug. In contrast the following works fine.
rescue_from :all do conn |> send_resp(500, "Oh noes.") end
Is the documentation out of date? Or is this a bug?
I had bumped version and not seen the changes in documentation. Please ignore.
Documentation suggests you can write something like this:
However an exception is raised, expressing that the Cowboy adapter was expecting to receive a plug. In contrast the following works fine.
Is the documentation out of date? Or is this a bug?