2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-28 22:50:48 +00:00

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

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