Merge pull request #9704 from filecoin-project/asr/fix-panic-2

fix: cli: correctly return error panic-less-ly
This commit is contained in:
Geoff Stuart 2022-11-22 12:54:43 -05:00 committed by GitHub
commit 2fabffe481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ var actorWithdrawCmd = &cli.Command{
// wait for it to get mined into a block
wait, err := api.StateWaitMsg(ctx, res, uint64(cctx.Int("confidence")))
if err != nil {
return xerrors.Errorf("Timeout waiting for withdrawal message %s", wait.Message)
return xerrors.Errorf("Timeout waiting for withdrawal message %s", res)
}
if wait.Receipt.ExitCode.IsError() {