mirror of
https://github.com/octoleo/restic.git
synced 2024-12-28 13:00:53 +00:00
backup: improve error message if exclude file cannot be loaded
This commit is contained in:
parent
667a2f5369
commit
ee1ff3c1d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user