diff --git a/examples/echo_endpoint.rb b/examples/echo_endpoint.rb index 05e02f8..9774389 100755 --- a/examples/echo_endpoint.rb +++ b/examples/echo_endpoint.rb @@ -12,7 +12,7 @@ def initialize(a_var = 1) end endpoint(:echo) { |msg| Success(msg.data) } - endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }.to_json) } + endpoint(:echo_fail) { |msg| Failure({ failure: '*boom*', data: msg.data }) } end if __FILE__ == $PROGRAM_NAME