Skip to content

Commit

Permalink
fix #3884. restore json serialization of Crystal::Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff committed Jan 13, 2017
1 parent 26402dd commit 82671f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/crystal/tools/playground/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ module Crystal::Playground
json.object do
json.field "message", ex.to_s
if ex.is_a?(Crystal::Exception)
json.field "payload", ex.to_s
json.field "payload" do
ex.to_json(json)
end
end
end
end
Expand Down

0 comments on commit 82671f5

Please sign in to comment.