This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 205879 - Improve the error messages from Nashorn
Summary: Improve the error messages from Nashorn
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Blocks: 205872
  Show dependency tree
Reported: 2011-12-02 20:21 UTC by Petr Pisl
Modified: 2011-12-02 20:21 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Petr Pisl 2011-12-02 20:21:22 UTC
The error messages from Nashorn are "raw" sometimes. These messages should be translated sometimes to "human" language. 

The second problem is that the error offset doesn't corresponds to the position, where the error really is. Usually the error offset is on the next statement, where the parser was able to recover.