grpc icon indicating copy to clipboard operation
grpc copied to clipboard

Allow RPC handlers to return errors

Open mpalmer opened this issue 3 years ago • 0 comments

Having to raise an exception to signal an error is slower (because exceptions are, well, exceptional), and it also interferes with exception logging interceptors. This change allows RPC handler methods to return {:error, ...} and have the expected thing happen -- which happens to be exactly how interceptors work, as a bonus.

mpalmer avatar Apr 29 '22 00:04 mpalmer