mirror of
https://github.com/octoleo/restic.git
synced 2025-01-27 17:18:34 +00:00
check: point users towards the troubleshooting guide if repo has errors
This commit is contained in:
parent
c9a4a95848
commit
6d9dfff1cb
@ -431,6 +431,9 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
|
|||||||
}
|
}
|
||||||
|
|
||||||
if errorsFound {
|
if errorsFound {
|
||||||
|
if len(salvagePacks) == 0 {
|
||||||
|
printer.E("\nThe repository is damaged and must be repaired. Please follow the troubleshooting guide at https://restic.readthedocs.io/en/stable/077_troubleshooting.html .\n\n")
|
||||||
|
}
|
||||||
return errors.Fatal("repository contains errors")
|
return errors.Fatal("repository contains errors")
|
||||||
}
|
}
|
||||||
printer.P("no errors were found\n")
|
printer.P("no errors were found\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user