Error handling during compilation