Skip to content

Commit

Permalink
Merge pull request #4696 from MichaelEischer/fix-exclude-load-error-msg
Browse files Browse the repository at this point in the history
backup: improve error message if exclude file cannot be loaded
  • Loading branch information
MichaelEischer committed Feb 11, 2024
2 parents 667a2f5 + ee1ff3c commit dde556e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/restic/exclude.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dde556e

Please sign in to comment.