From 16d7dec4ccdb4411612b9e5e85fa92984efce161 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 25 Jan 2020 21:07:02 -0500 Subject: [PATCH] Fix error message --- src/mixin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixin.rs b/src/mixin.rs index a8f2dbd..afda5f1 100644 --- a/src/mixin.rs +++ b/src/mixin.rs @@ -129,7 +129,7 @@ pub(crate) fn eat_include>( .expect("this must exist because we have already peeked"); let name = match kind { TokenKind::Ident(s) => s, - _ => return Err((pos, String::from("expected identifier"))), + _ => return Err((pos, String::from("Expected identifier."))), }; devour_whitespace(toks); @@ -156,7 +156,7 @@ pub(crate) fn eat_include>( let mixin = match scope.mixins.get(&name) { Some(m) => m.clone(), - _ => return Err((pos, String::from("expected identifier"))), + _ => return Err((pos, String::from("Expected identifier."))), }; let rules = mixin.args(&args).call(super_selector)?;