properly log preprocessor errors