mirror of
https://github.com/kopia/kopia.git
synced 2026-03-26 18:11:45 -04:00
b2: fixed error handling for GetMetadata() (#1563)
This commit is contained in:
@@ -124,7 +124,7 @@ func translateError(err error) error {
|
||||
return blob.ErrBlobNotFound
|
||||
}
|
||||
|
||||
if b2err.Code == "bad_request" && strings.HasPrefix(b2err.Message, "Bad fileId") {
|
||||
if b2err.Code == "bad_request" && strings.HasPrefix(b2err.Message, "Bad file") {
|
||||
// returned in GetMetadata() when fileId is not found.
|
||||
return blob.ErrBlobNotFound
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user