lesscss-servlet icon indicating copy to clipboard operation
lesscss-servlet copied to clipboard

buggy when cache == false, no exception logging

Open bohl opened this issue 14 years ago • 2 comments

Looks like the servlet is "swallowing" some exceptions. Please use LOG4J or something to log all exceptions you catch. Also, in development mode, people will use cache == false. It seems like this is not implemented properly (resources.put()) is always performed, even if cache == false).

bohl avatar Feb 04 '11 10:02 bohl

Looks like the servlet is "swallowing" some exceptions.

Especially annoying when a lesscss file contains syntax errors. Nothing is logged then, and the servlet EITHER sends 404 OR a stale version of the "compilation" result.

bohl avatar Feb 04 '11 10:02 bohl

I noticed it returning a stale compiled version when exceptions are thrown. It will throw an exception one request, then return the last successfully compiled version the next, inconsistently.

PersonThing avatar Aug 03 '11 20:08 PersonThing