Merge pull request #4089 from greatroar/errors

Clean up error handling further
This commit is contained in:
Michael Eischer
2022-12-24 10:41:56 +01:00
committed by GitHub
12 changed files with 47 additions and 49 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
if checker.IsOrphanedPack(err) {
orphanedPacks++
Verbosef("%v\n", err)
} else if _, ok := err.(*checker.ErrLegacyLayout); ok {
} else if err == checker.ErrLegacyLayout {
Verbosef("repository still uses the S3 legacy layout\nPlease run `restic migrate s3legacy` to correct this.\n")
} else {
errorsFound = true