question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exceptions messages are a bit unclear

See original GitHub issue

Hi,

Take for example this invalid JSLT:

{
  "id" : ,
}

This will produce this exception (using the demo playground):

com.schibsted.spt.data.jslt.JsltException: Parse error: Encountered " "," ", "" at line 2, column 10.

How do you read whatever is between Encountered and at line 2,...? It’s kind of confusing IMO.

Let me know what do you think, thank you for this great library!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
catullcommented, Dec 12, 2020

You entered the JSON object in the JSTL text area in the playground.

I, OTOH, entered the same JSON object in the Input text area. That explains the different errors experienced.

0reactions
larsgacommented, Dec 12, 2020

Reopening, because those error messages really could be better than they are.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Messages: Examples, Best Practices & Common Mistakes
1. Ambiguity · 2. Condescending language/blaming the user · 3. Poor placement of error messages · 4. Unclear expectations.
Read more >
Unclear how to suppress "Possible unhandled error ... - GitHub
When my task fails, I leave the exception to propagate out of the task itself. Then, I catch it when I do ray.get...
Read more >
Exception messages are for programmers - ploeh blog
Developers who do care about exception messages often seem to have end users in mind. They may spell exception messages correctly, but shy...
Read more >
Your error messages are bad and you should feel bad
The translation from exceptions to error messages is a technical decision and often a bad one. There are legitimate times you should do...
Read more >
[SERVER-11188] update $bit error messages are unclear
I think the error message should say something like, "cannot apply $bit to a value that is not NumberInt nor NumberLong". ======= ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found