Chakracore: Improve error messages

Created on 9 Mar 2017  路  7Comments  路  Source: chakra-core/ChakraCore

In order to provide the best possible development experience, we should improve error messages to call out as much information as possible (which parameter, which field, actual/expected types, etc.) when something goes wrong.

Sub-issues:

Fixed

  • [x] #424 (fixed)
  • [x] #2901

Poor / difficult to understand messages

Nice-to-have improvements

  • [ ] Follow up issue #2411 and PR #2648 (improved by the PR but still needs more work)
Dev Experience Task help wanted

Most helpful comment

@ljharb I like #2648 for what it is; in order to provide better messages across the board would be a bigger work item, so I've decided to open this issue to track it.

All 7 comments

@ljharb I like #2648 for what it is; in order to provide better messages across the board would be a bigger work item, so I've decided to open this issue to track it.

@bterlson

I am working on a comparison sheet with our errors and other runtimes' errors (based on test262 tests). I will post that here, thanks for creating an issue :)

Meta:

I don't think Bug (not a functionality problem) or Codebase Quality (IMO more about code cleanliness) really works for this kind of issue. I was thinking of adding a label like Dev Experience but even that seems a bit off or perhaps heavy-handed. For now I'll leave it as Codebase Quality. What do you think @bterlson / @liminzhu?

FYI: https://github.com/Microsoft/ChakraCore/wiki/Label-Glossary

Agree none of the current labels really apply. I like the idea of "Dev Experience" or even just "Experience". The default label set includes "Improvement" which is another option, too.

We don't currently have an "Improvement" label.

One reason I don't like Dev Experience is that considering we're a dev tool, there might be confusion as to whether "Dev" refers to users/embedders of ChakraCore (who are devs) or to ChakraCore devs.

Arguably the split is Codebase Quality is for issues that affect devs of ChakraCore and Dev Experience relates to the dev experience we ship. Arguably an issue in the dev experience we ship is a kind of Bug...

I'll probably go with Dev Experience if nobody else chimes in.

@kfarnung we have this catch-all for error message improvements. Maybe we can dupe any other error-message issues to this one and track as a group?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crdumoul picture crdumoul  路  4Comments

jdalton picture jdalton  路  4Comments

rajatd picture rajatd  路  6Comments

gustavopinto picture gustavopinto  路  3Comments

d3x0r picture d3x0r  路  5Comments