handle errors in less parsing and rendering