diff --git a/cmd/restic/exclude.go b/cmd/restic/exclude.go index 095944610..d9bb63aeb 100644 --- a/cmd/restic/exclude.go +++ b/cmd/restic/exclude.go @@ -426,7 +426,7 @@ func readExcludePatternsFromFiles(excludeFiles []string) ([]string, error) { return scanner.Err() }() if err != nil { - return nil, err + return nil, fmt.Errorf("failed to read excludes from file %q: %w", filename, err) } } return excludes, nil