Fix this to check for the correct error message.