fix: cli: correctly return error panic-less-ly

This commit is contained in:
Aayush 2022-11-22 12:10:12 -05:00
parent 64de59ab44
commit 610a3eee5d

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() {