lib/nats/rpc/servant.rb in nats-rpc-0.0.2 vs lib/nats/rpc/servant.rb in nats-rpc-0.0.3
- old
+ new
@@ -91,10 +91,10 @@
def error_message(code, data)
{
status: "error",
code: code,
- payload: data,
+ payload: data.to_json,
servant: @id
}.to_json
end
def debug(str)