diff --git a/examples/ruby/greeter_client.rb b/examples/ruby/greeter_client.rb index 2b602e59fb1..33a2e795830 100755 --- a/examples/ruby/greeter_client.rb +++ b/examples/ruby/greeter_client.rb @@ -33,7 +33,7 @@ def main message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message p "Greeting: #{message}" rescue GRPC::BadStatus => e - abort "ERROR: #{e.code}, #{e.details}" + abort "ERROR: #{e.message}" end end