Skip to content

Commit e5147d6

Browse files
authored
Merge pull request #7973 from ipfs/fix/7957
fix: return an error if repo verify is canceled
2 parents 7e4addd + 98ee5ab commit e5147d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/commands/repo.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ var repoVerifyCmd = &cmds.Command{
313313
}
314314
}
315315

316+
if err := req.Context.Err(); err != nil {
317+
return err
318+
}
319+
316320
if fails != 0 {
317321
return errors.New("verify complete, some blocks were corrupt")
318322
}

0 commit comments

Comments
 (0)