Skip to content

Commit

Permalink
Better exception handling (#131)
Browse files Browse the repository at this point in the history
Not all exceptions have a message; they all play well with Exception.message though.
  • Loading branch information
scohen committed Jan 3, 2017
1 parent f2cb210 commit 96ed239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thrift/generator/server/binary_framed.ex
Expand Up @@ -95,7 +95,7 @@ defmodule Thrift.Generator.Server.BinaryFramed do
quote do
unhandled ->
{:server_error, Thrift.TApplicationException.exception(
message: "Server error: #{unhandled.message}",
message: "Server error: #{Exception.message(unhandled)}",
type: :internal_error)}
end

Expand Down

0 comments on commit 96ed239

Please sign in to comment.