Added support for handling compiler errors.