Skip to content

Commit

Permalink
chore: optimize error msg of ExecutorApp (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Apr 16, 2024
1 parent 9b1883c commit 97e4814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/storage/keeper/cross_app_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ func (app *ExecutorApp) ExecuteSynPackage(ctx sdk.Context, appCtx *sdk.CrossChai
if err != nil {
app.sKeeper.Logger(ctx).Error("deserialize executor msg error", "msg bytes", hex.EncodeToString(msgBz), "error", err.Error())
return sdk.ExecuteResult{
Err: fmt.Errorf("deserialize executor msg error: %v", err),
Err: fmt.Errorf("deserialize executor msg error: %v, msg index: %d", err, i),
}
}

err = app.msgHandler(ctx, msg)
if err != nil {
app.sKeeper.Logger(ctx).Error("execute executor msg error", "index", i, "data", msgBz, "error", err.Error())
return sdk.ExecuteResult{
Err: fmt.Errorf("execute executor msg error: %v", err),
Err: fmt.Errorf("execute executor msg error: %v, msg index: %d", err, i),
}
}
}
Expand Down

0 comments on commit 97e4814

Please sign in to comment.