fix: return an error if repo verify is canceled

fixes #7957
This commit is contained in:
Steven Allen 2021-03-11 11:20:47 -08:00
parent 65d9507c3d
commit 98ee5abe5f

View File

@ -313,6 +313,10 @@ var repoVerifyCmd = &cmds.Command{
}
}
if err := req.Context.Err(); err != nil {
return err
}
if fails != 0 {
return errors.New("verify complete, some blocks were corrupt")
}