@@ -389,7 +389,7 @@ func (s *server) UpstreamAuthFailureNotice(ctx context.Context, req *UpstreamAut
389
389
methods = append (methods , m )
390
390
}
391
391
392
- s .config .UpstreamAuthFailureCallback (req .Meta , req .Method , fmt .Errorf (req .Error ), methods )
392
+ s .config .UpstreamAuthFailureCallback (req .Meta , req .Method , fmt .Errorf ("%v" , req .Error ), methods )
393
393
394
394
return & UpstreamAuthFailureNoticeResponse {}, nil
395
395
}
@@ -436,7 +436,7 @@ func (s *server) PipeErrorNotice(ctx context.Context, req *PipeErrorNoticeReques
436
436
return nil , status .Errorf (codes .Unimplemented , "method PipeErrorNotice not implemented" )
437
437
}
438
438
439
- s .config .PipeErrorCallback (req .Meta , fmt .Errorf (req .Error ))
439
+ s .config .PipeErrorCallback (req .Meta , fmt .Errorf ("%v" , req .Error ))
440
440
441
441
return & PipeErrorNoticeResponse {}, nil
442
442
}
@@ -446,7 +446,7 @@ func (s *server) PipeCreateErrorNotice(ctx context.Context, req *PipeCreateError
446
446
return nil , status .Errorf (codes .Unimplemented , "method PipeCreateErrorNotice not implemented" )
447
447
}
448
448
449
- s .config .PipeCreateErrorCallback (req .FromAddr , fmt .Errorf (req .Error ))
449
+ s .config .PipeCreateErrorCallback (req .FromAddr , fmt .Errorf ("%v" , req .Error ))
450
450
451
451
return & PipeCreateErrorNoticeResponse {}, nil
452
452
}
0 commit comments