Adding automatic error message processing