2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-03 17:40:53 +00:00

backup: improve error message if exclude file cannot be loaded

This commit is contained in:
Michael Eischer 2024-02-11 22:26:13 +01:00
parent 667a2f5369
commit ee1ff3c1d0

View File

@ -426,7 +426,7 @@ func readExcludePatternsFromFiles(excludeFiles []string) ([]string, error) {
return scanner.Err() return scanner.Err()
}() }()
if err != nil { if err != nil {
return nil, err return nil, fmt.Errorf("failed to read excludes from file %q: %w", filename, err)
} }
} }
return excludes, nil return excludes, nil