compile error handling