mirror of
https://github.com/restic/restic.git
synced 2026-08-30 09:17:14 +00:00
Merge pull request #4089 from greatroar/errors
Clean up error handling further
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user