Capture compilation errors