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
1 changed files with 1 additions and 1 deletions

View File

@ -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