better error message for invalid selector characters

This commit is contained in:
ConnorSkees 2020-04-03 14:14:40 -04:00
parent f2bb6097dc
commit f4efcf0b45

View File

@ -316,7 +316,7 @@ impl Selector {
} }
continue; continue;
} }
_ => todo!(), _ => return Err("expected selector.".into()),
}); });
iter.next(); iter.next();
} }