Ensure that an error message is returned