Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "expected" and "actual" to invalid nonce error message #288

Closed
webmaster128 opened this issue Jan 23, 2019 · 0 comments
Closed

Add "expected" and "actual" to invalid nonce error message #288

webmaster128 opened this issue Jan 23, 2019 · 0 comments

Comments

@webmaster128
Copy link
Contributor

In the error message

"Mismatch %d != %d"

it is hard to debug which of the values is expected and which one is the actual value. E.g.

SetName failed: Error: {
      "data": {},
      "log": "Mismatch 0 != 1: Invalid sequence number",
      "code": 20,
      "hash": {
        "0": 10,
        "1": 197,
        "2": 230,
        "3": 86,
        "4": 170,
        "5": 29,
        "6": 200,
        "7": 120,
        "8": 89,
        "9": 147,
        "10": 252,
        "11": 205,
        "12": 197,
        "13": 18,
        "14": 189,
        "15": 236,
        "16": 155,
        "17": 4,
        "18": 254,
        "19": 51
      }
    }

Knowing expected/actual is important for debugging what kind of issue this is

@webmaster128 webmaster128 changed the title Add "expected" and "actual" to iinvalid nonce error message Add "expected" and "actual" to invalid nonce error message Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant