Scripting: script console gives wrong line number for script error
Bug #1046518 reported by
Khalid AlAjaji
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stellarium |
Fix Released
|
Low
|
Alexander Wolf |
Bug Description
If a script has an error, the script console message gives a wrong line number for the code line where the error is.
Example:
//
LandscapeMgr.
LandscapeMgr.
Error in the 3rd line (truie)
The error message says: script error: "ReferenceError: Can't find variable: truie" @ line 5
The correct line number is always (the line number in the message + 1 )/2, in this case (5 + 1)/2=3
See also: http://
Related branches
Changed in stellarium: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Diff: http:// bazaar. launchpad. net/~stellarium /stellarium/ trunk/revision/ 5593