Skip to content

Commit 1506e00

Browse files
committed
core: improved error message for invalid nonce txs
1 parent 7138404 commit 1506e00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/error.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (err *NonceErr) Error() string {
8181
}
8282

8383
func NonceError(is, exp uint64) *NonceErr {
84-
return &NonceErr{Message: fmt.Sprintf("Transaction w/ invalid nonce (%d / %d)", is, exp), Is: is, Exp: exp}
84+
return &NonceErr{Message: fmt.Sprintf("Transaction w/ invalid nonce. tx=%d state=%d)", is, exp), Is: is, Exp: exp}
8585
}
8686

8787
func IsNonceErr(err error) bool {

0 commit comments

Comments
 (0)