mirror of
https://github.com/octoleo/restic.git
synced 2024-11-23 05:12:10 +00:00
Add explicit OK output to check command
This adds additional output to the check command when no errors were found. It means that when all checks have been completed, the following output is displayed: No errors were found The output is added to make sure that it is easier to understand that no errors were found. Full example output: Create exclusive lock for repository Load indexes Check all packs Check snapshots, trees and blobs No errors were found
This commit is contained in:
parent
e45011af57
commit
d46314648e
@ -176,5 +176,8 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error {
|
|||||||
if errorsFound {
|
if errorsFound {
|
||||||
return errors.Fatal("repository contains errors")
|
return errors.Fatal("repository contains errors")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Verbosef("No errors were found\n")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user