Adding compilation hook for error parsing.