We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70f7491 commit 5ee2aecCopy full SHA for 5ee2aec
serviceerror/convert.go
@@ -89,6 +89,12 @@ func FromStatus(st *status.Status) error {
89
90
// Extract error details once to optimize performance.
91
errDetails := extractErrorDetails(st)
92
+
93
+ // If there was an error during details extraction, it will go to errDetails.
94
+ if err, ok := errDetails.(error); ok{
95
+ return NewInvalidArgument(err.Error())
96
+ }
97
98
switch st.Code() {
99
case codes.NotFound:
100
if errDetails == nil{
0 commit comments