1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-07-03 07:36:45 +02:00

add volume id to error message

This commit is contained in:
Chris Lu 2017-06-03 01:58:28 -07:00
parent 83efe1547d
commit f5bed84340

View file

@ -31,10 +31,10 @@ func (ms *MasterServer) lookupVolumeId(vids []string, collection string) (volume
} }
volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Locations: ret} volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Locations: ret}
} else { } else {
volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Error: "volumeId not found."} volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Error: fmt.Sprintf("volumeId %s not found.", vid)}
} }
} else { } else {
volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Error: "Unknown volumeId format."} volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Error: fmt.Sprintf("Unknown volumeId format: %s", vid)}
} }
} }
return return