check less compilation for errors

This now gives proper files and line numbers for errors