We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d87b8c commit e7ef335Copy full SHA for e7ef335
examples/echo_endpoint.rb
@@ -12,7 +12,7 @@ def initialize(a_var = 1)
12
end
13
14
endpoint(:echo) { |msg| Success(msg.data) }
15
- endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }.to_json) }
+ endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }) }
16
17
18
if __FILE__ == $PROGRAM_NAME
0 commit comments