From 6fec7326c72a8d3e8f3f893dd8f652616d6d3854 Mon Sep 17 00:00:00 2001 From: "Tj (bougyman) Vanderpoel" Date: Wed, 6 Aug 2025 10:04:15 -0500 Subject: [PATCH] docs: Removes #to_json from the Failure result, the wrapper handles taht --- examples/echo_endpoint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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