Raise error if no domain found or specified