mirror of
https://github.com/restic/restic.git
synced 2025-12-04 14:02:03 +00:00
archiver: Return correct error
This commit is contained in:
@@ -189,9 +189,8 @@ func (s *FileSaver) saveFile(ctx context.Context, chnker *chunker.Chunker, snPat
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, res := range results {
|
for _, res := range results {
|
||||||
// test if the context has been cancelled, return the error
|
|
||||||
if res.Err() != nil {
|
if res.Err() != nil {
|
||||||
return saveFileResponse{err: ctx.Err()}
|
return saveFileResponse{err: res.Err()}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !res.Known() {
|
if !res.Known() {
|
||||||
|
|||||||
Reference in New Issue
Block a user