oyejorge / less.php

less.js ported to PHP.
http://lessphp.typesettercms.com
Apache License 2.0
656 stars 2 forks source link

Error not being catched #320

Open gerardreches opened 8 years ago

gerardreches commented 8 years ago

My code was working until now, but now when I have a Less error the try{}catch{} isn't working. When I do echo $parser->getCss(); inside try, it prints

Error compiling LESS files: variable @tablet is undefined in file ......

So catch(Exception e){ } seems that isn't working.

I don't know if it can has some relation, but I updated to PHP 7 recently.