mirror of
https://github.com/restic/restic.git
synced 2026-10-07 19:07:12 +00:00
backup: improve error message if exclude file cannot be loaded
This commit is contained in:
1 parent
667a2f5369
commit
ee1ff3c1d0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user