Merge pull request #4696 from MichaelEischer/fix-exclude-load-error-msg

backup: improve error message if exclude file cannot be loaded
This commit is contained in:
Michael Eischer 2024-02-11 21:35:31 +00:00 committed by GitHub
commit dde556e8e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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