joyent/node — Issue #2550: Where does the SyntaxError line number go?
Author: chowey
Created: 2012-01-17 04:01:30+00:00
State: open

I have a question. In node_script.cc:

```c++
379 if (script.IsEmpty()) {
380 // FIXME UGLY HACK TO DISPLAY SYNTAX ERRORS.
381 if (display_error) DisplayExceptionLine(try_catch);
382
383 // Hack because I can't get a proper stacktrace on SyntaxError
384 return try_catch.ReThrow();
385 }
```

Node displays the syntax error and line number, but it does not seem to be on stdout or stderr. How do I get at it from Node?