This should be an exception, not `assert`.