Output compilation error and filename, if error in template