We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5003b30 commit efc5563Copy full SHA for efc5563
frontend/src/utils/error.rs
@@ -81,6 +81,7 @@ impl From<tonic::Status> for Error {
81
fn from(value: tonic::Status) -> Self {
82
use tonic::Code;
83
84
+ let context = value.message().to_owned();
85
let kind = match value.code() {
86
Code::NotFound => ErrorKind::NotFound,
87
Code::Unauthenticated => ErrorKind::Unauthenticated,
@@ -90,11 +91,10 @@ impl From<tonic::Status> for Error {
90
91
// this happened when grpc cannot find the rpc
92
Code::Unimplemented => ErrorKind::ApiNotMatch,
93
code => {
- logging::error!("{code}");
94
+ logging::error!("unknown grpc error: {code}, {context}");
95
ErrorKind::Internal
96
}
97
};
- let context = value.message().to_owned();
98
99
Self { kind, context }
100
0 commit comments