Skip to content

Commit

Permalink
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
@@ -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

0 comments on commit 82671f5

Please sign in to comment.