log compilation errors to the console