Better logging of compile errors