mikolalysenko / node-latex

node.js wrapper for LaTeX
MIT License
25 stars 20 forks source link

Missing latex error #4

Closed mrkev closed 10 years ago

mrkev commented 10 years ago

I got the following error when trying to run a script.

$ node index.js
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: spawn ENOENT
    at exports._errnoException (util.js:742:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1028:32)
    at child_process.js:1109:20
    at process._tickCallback (node.js:343:11)

After some digging I found out it was because something went wrong with my latex installation, and so there was no latex application that could be found. IMO this error should be better handled. I can see an error like this being fairly common: handling it to log a No latex installation found or something would be greatly appreciated!

mikolalysenko commented 10 years ago

Yeah, this is probably a good idea. If you want to fix it, I'll accept a PR.