mirror of
https://github.com/restic/restic.git
synced 2026-07-10 01:05:10 +00:00
Add ability to report warnings to terminal
Report warnings to terminal when unrecognized generic attributes are found in the repository.
This commit is contained in:
@@ -178,6 +178,9 @@ func runRestore(ctx context.Context, opts RestoreOptions, gopts GlobalOptions,
|
||||
totalErrors++
|
||||
return nil
|
||||
}
|
||||
res.Warn = func(message string) {
|
||||
msg.E("Warning: %s\n", message)
|
||||
}
|
||||
|
||||
excludePatterns := filter.ParsePatterns(opts.Exclude)
|
||||
insensitiveExcludePatterns := filter.ParsePatterns(opts.InsensitiveExclude)
|
||||
|
||||
Reference in New Issue
Block a user