Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Make error messages easier to read #30

Open
dmccreary opened this issue Feb 13, 2015 · 0 comments
Open

Make error messages easier to read #30

dmccreary opened this issue Feb 13, 2015 · 0 comments

Comments

@dmccreary
Copy link

If there are errors in the JavaScript the full HTML source is displayed in the output pane. A more usable output would only display the actual error message and the line number.

For example an more readable error message might be:

Error on line 4: ReferenceError: foo is not defined

not the following:

<title>500 Internal Server Error</title>

500 Internal Server Error

JS-JAVASCRIPT: Error running JavaScript request: ReferenceError: O is not defined
at 4:0 [JavaScript]
at 4:3,
in xdmp:eval("var o=[];&#10;for (var i =0; i<10; i++)&#10;o.push(i)&#10;foo&#10;", (), <options xmlns="xdmp:eval"><isolation>different-transaction</isolation><database>1406750404...</options>) [JavaScript]
at 4:3 [1.0-ml]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant