more detailed error

This commit is contained in:
chrislu 2022-08-30 09:43:17 -07:00
parent d81db3c703
commit e583dbdd2a

View file

@ -66,7 +66,7 @@ func (mc *MasterClient) LookupFileIdWithFallback(fileId string) (fullUrls []stri
VolumeOrFileIds: []string{fileId},
})
if err != nil {
return fmt.Errorf("LookupVolume failed: %v", err)
return fmt.Errorf("LookupVolume %s failed: %v", fileId, err)
}
for vid, vidLocation := range resp.VolumeIdLocations {
for _, vidLoc := range vidLocation.Locations {