From d46314648e7dd832c8a3f290767e60658f736746 Mon Sep 17 00:00:00 2001 From: Anton Lindstrom Date: Tue, 3 Oct 2017 08:29:19 +0200 Subject: [PATCH] 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 --- cmd/restic/cmd_check.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go index 1a12585fd..f45e27271 100644 --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -176,5 +176,8 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error { if errorsFound { return errors.Fatal("repository contains errors") } + + Verbosef("No errors were found\n") + return nil }