mirror of
https://github.com/kopia/kopia.git
synced 2026-10-06 00:51:37 -04:00
b2: fixed error handling for GetMetadata() (#1563)
This commit is contained in:
1 parent
09d4d169f0
commit
26fff65f7b
1 file changed
+1
-1
@@ -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