-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error formatting: Go over the displayed errors and make them more user friendly #40
Comments
Hey @carlaKC is it fine if I pick this up? |
hey @carlaKC regarding the error messages based on @sr-gi's example above would any of the formats below be acceptable? I'll implement whichever one you pick. Error: Lightning Error
Caused by:
Config validation failed Destination node does not support keysend 02ab4734430c485b1d15af93ff00060db86f7fe952b04c19afd42709dcd83b1c50 or do we go with just: Caused by:
Config validation failed Destination node does not support keysend 02ab4734430c485b1d15af93ff00060db86f7fe952b04c19afd42709dcd83b1c50 or maybe: Error: Lightning Error
Type: Validation Error
Caused by: Config validation failed Destination node does not support keysend 02ab4734430c485b1d15af93ff00060db86f7fe952b04c19afd42709dcd83b1c50 we can also consider: Error: Lightning Error
Type: Validation Error
Caused by: Config validation failed Destination node does not support keysend
Destination: 02ab4734430c485b1d15af93ff00060db86f7fe952b04c19afd42709dcd83b1c50 Standing by for your decision. |
This one is fine to me, no strong opinions though:
|
Alright got it. |
One place where we could do better on errors is when we parse our sim file - right now we just display a line an column, not the actual error. Error: Could not deserialize node connection data or activity description from simulation file (line 41, col 5, err Cannot parse range. Ranges must be strictly increasing (i.e. [x, y] with x > y). Received [20000, 1000] at line 41 column 5). Example: Missing comma in json
When the actual error contains:
Example: Invalid Range
vs
There is ofc a tradeoff between more information for debugging problems and angry-json-screaming, so I think we can look at classify for more nuanced handing of these cases. |
Hey @carlaKC you're right. i'll look into classify and see how we can leverage on it. |
Just as an example, if a destination node does not support keysend, this is the error we'll be getting:
The text was updated successfully, but these errors were encountered: