print the exception's message, rather than individual fields

pull/23125/head
Hannah Shi 5 years ago
parent acd54e7c19
commit deb88ffa6b
  1. 2
      examples/ruby/greeter_client.rb

@ -33,7 +33,7 @@ def main
message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
p "Greeting: #{message}" p "Greeting: #{message}"
rescue GRPC::BadStatus => e rescue GRPC::BadStatus => e
abort "ERROR: #{e.code}, #{e.details}" abort "ERROR: #{e.message}"
end end
end end

Loading…
Cancel
Save