sstephenson/execjs — Issue #52: Unclear error messages
Author: TomK32
Created: 2011-10-19 14:57:59+00:00
State: open

I'm not sure if this issue belongs here or to sprockets. same difference?
If you pass some bad command to execjs, in my case it was a simple typo, then the error message is not at all clear and it took me a few minutes to find it:

E.g:
```
//= req2uire mylib
```

output:
```
throw Error("ExecJS::ProgramError: Parse error on line 1: Unexpected '='\n (in /opt/my.js)")
```