mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 12:07:09 +00:00
fix(sidecar): include exception type in gRPC error description
This commit is contained in:
1 parent
5b7415d2ea
commit
a70c865afa
1 file changed
-1
@@ -150,7 +150,6 @@ class DriverService(
|
|||||||
observer.onNext(block())
|
observer.onNext(block())
|
||||||
observer.onCompleted()
|
observer.onCompleted()
|
||||||
} catch (cause: Exception) {
|
} catch (cause: Exception) {
|
||||||
cause.printStackTrace()
|
|
||||||
observer.onError(io.grpc.Status.INTERNAL.withDescription(cause.toString())
|
observer.onError(io.grpc.Status.INTERNAL.withDescription(cause.toString())
|
||||||
.withCause(cause).asRuntimeException())
|
.withCause(cause).asRuntimeException())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user