fixed logging of compile errors