forked from TrueCloudLab/restic
backup: improve error message if exclude file cannot be loaded
This commit is contained in:
parent
667a2f5369
commit
ee1ff3c1d0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue