Capture errors from compilemessages