Adjust the error message output so that we're only getting the text value once