volume: keep master lookup error detail out of the proxy error response

This commit is contained in:
chrislusf committed 2026-10-26 01:49:06 -07:00
1 parent 18b71ed0ef
commit 1ef76dfb12
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ func (vs *VolumeServer) proxyReqToTargetServer(w http.ResponseWriter, r *http.Re
lookupResult, err := operation.LookupVolumeId(vs.GetMaster, vs.grpcDialOption, volumeId.String())
if err != nil && vs.ReadMode == "proxy" {
glog.V(0).InfofCtx(r.Context(), "lookup error: %v %s", err, r.URL.Path)
InternalError(w, r, err)
InternalError(w, r, nil)
return
}
if err != nil || len(lookupResult.Locations) <= 0 {