forked from TrueCloudLab/restic
archiver: Return correct error
This commit is contained in:
parent
157c854d04
commit
1f2463f42e
1 changed files with 1 additions and 2 deletions
|
@ -189,9 +189,8 @@ func (s *FileSaver) saveFile(ctx context.Context, chnker *chunker.Chunker, snPat
|
|||
}
|
||||
|
||||
for _, res := range results {
|
||||
// test if the context has been cancelled, return the error
|
||||
if res.Err() != nil {
|
||||
return saveFileResponse{err: ctx.Err()}
|
||||
return saveFileResponse{err: res.Err()}
|
||||
}
|
||||
|
||||
if !res.Known() {
|
||||
|
|
Loading…
Reference in a new issue