cloudhead/less.js — Issue #561: impossible to recover from process.exit in less.Parser.importer
Author: bdalziel
Created: 2012-01-10 22:25:42+00:00
State: open

I have a node.js server that surfaces simple less compiler functionality over HTTP. All is well until a parser import error happens, which leads to these lines being executed:

https://github.com/cloudhead/less.js/blob/master/lib/less/index.js#L117

The node instance dies, and I can't see a way to guard against this. I would like to avoid having to run a cron to keep restarting the server since multiple developers are hitting it. Throwing an exception would enable me to message the user and continue the server thread.