Browse Source

add volume id to error message

pull/508/head
Chris Lu 8 years ago
parent
commit
f5bed84340
  1. 4
      weed/server/master_server_handlers.go

4
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} 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

Loading…
Cancel
Save