forked from TrueCloudLab/restic
Return error when it occurs
This commit is contained in:
parent
ef33cf12ca
commit
6b384287f3
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func ParallelWorkFuncParseID(f ParallelIDWorkFunc) ParallelWorkFunc {
|
||||||
id, err := backend.ParseID(s)
|
id, err := backend.ParseID(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
debug.Log("repository.ParallelWorkFuncParseID", "invalid ID %q: %v", id, err)
|
debug.Log("repository.ParallelWorkFuncParseID", "invalid ID %q: %v", id, err)
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
return f(id, done)
|
return f(id, done)
|
||||||
|
|
Loading…
Add table
Reference in a new issue