Method: Gruf::Error#attach_to_call
- Defined in:
- lib/gruf/error.rb
#attach_to_call(active_call) ⇒ Error
Append any appropriate errors to the gRPC call and properly update the output metadata
129 130 131 132 133 134 135 |
# File 'lib/gruf/error.rb', line 129 def attach_to_call(active_call) [Gruf..to_sym] = serialize if Gruf. if !.empty? && active_call && active_call.respond_to?(:output_metadata) active_call..update() end self end |