Skip to content

Commit 82671f5

Browse files
author
Brian J. Cardiff
committedJan 13, 2017
fix #3884. restore json serialization of Crystal::Exception
1 parent 26402dd commit 82671f5

File tree

1 file changed

+3
-1
lines changed
  • src/compiler/crystal/tools/playground

1 file changed

+3
-1
lines changed
 

‎src/compiler/crystal/tools/playground/server.cr

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ module Crystal::Playground
121121
json.object do
122122
json.field "message", ex.to_s
123123
if ex.is_a?(Crystal::Exception)
124-
json.field "payload", ex.to_s
124+
json.field "payload" do
125+
ex.to_json(json)
126+
end
125127
end
126128
end
127129
end

0 commit comments

Comments
 (0)
Please sign in to comment.