Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add volume id to error message

Chris Luf5bed84340b8
diff --git a/weed/server/master_server_handlers.go b/weed/server/master_server_handlers.go
index e811631f8f..b469afd246 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