Add error message to exception.