mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add source name to error message
This commit is contained in:
parent
0c12a7d12a
commit
f58ea6a2ee
|
@ -47,7 +47,7 @@ func downloadFromS3(sess s3iface.S3API, destFileName string, sourceBucket string
|
||||||
Key: aws.String(sourceKey),
|
Key: aws.String(sourceKey),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fileSize, fmt.Errorf("failed to download file %s: %v", destFileName, err)
|
return fileSize, fmt.Errorf("failed to download /buckets/%s%s to %s: %v", sourceBucket, sourceKey, destFileName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(1).Infof("downloaded file %s\n", destFileName)
|
glog.V(1).Infof("downloaded file %s\n", destFileName)
|
||||||
|
|
Loading…
Reference in a new issue