From 6b384287f3c7333733921740ab2fa20484245baa Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 7 Aug 2016 17:18:45 +0200 Subject: [PATCH] Return error when it occurs --- src/restic/repository/parallel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/repository/parallel.go b/src/restic/repository/parallel.go index d1e66c58..7094ae29 100644 --- a/src/restic/repository/parallel.go +++ b/src/restic/repository/parallel.go @@ -83,7 +83,7 @@ func ParallelWorkFuncParseID(f ParallelIDWorkFunc) ParallelWorkFunc { id, err := backend.ParseID(s) if err != nil { debug.Log("repository.ParallelWorkFuncParseID", "invalid ID %q: %v", id, err) - return nil + return err } return f(id, done)