less/less.js — pull request #1428 by clangen (2013-07-17 23:08:47+00:00)
Title: Raise error callback instead of throwing an exception when parsing.

In development mode one my servers compiles LESS on the fly while debugging. The problem is that certain types of syntax errors (e.g. invalid symbols) cause an exception to be thrown, halting the server.

Other places in the code, the parser callback is invoked on error, instead of halting program execution. Is there any reason an exception is thrown on line 424 instead if raising the error callback?

If there is no reason, can you accept my patch to raise the callback instead of throw? Would make my development life a lot easier :)