diff options
| author | Chris Lu <chris.lu@gmail.com> | 2017-06-03 01:58:28 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2017-06-03 01:58:28 -0700 |
| commit | f5bed84340b8b96c8b134b849f302120d85708c6 (patch) | |
| tree | 0898c165ce1b0f2248f5c0e4cd4315117e052817 | |
| parent | 83efe1547d38acabf92ed53e7e31189eab992ed7 (diff) | |
| download | seaweedfs-f5bed84340b8b96c8b134b849f302120d85708c6.tar.xz seaweedfs-f5bed84340b8b96c8b134b849f302120d85708c6.zip | |
add volume id to error message
| -rw-r--r-- | weed/server/master_server_handlers.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.go index e811631f8..b469afd24 100644 --- a/weed/server/master_server_handlers.go +++ b/weed/server/master_server_handlers.go @@ -31,10 +31,10 @@ func (ms *MasterServer) lookupVolumeId(vids []string, collection string) (volume } volumeLocations[vid] = operation.LookupResult{VolumeId: vid, Locations: ret} } 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 { - 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 |
