Log error string instead of data (#11038)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terencechain 2022-07-12 15:40:10 -07:00 committed by GitHub
parent 7654ffdcfc
commit 7c30533870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ func handleRPCError(err error) error {
if !ok {
return errors.Wrapf(err, "got an unexpected error in JSON-RPC response")
}
return errors.Wrapf(ErrServer, "%v", errWithData.ErrorData())
return errors.Wrapf(ErrServer, "%v", errWithData.Error())
default:
return err
}