better @for error messages

This commit is contained in:
ConnorSkees 2020-02-29 17:25:51 -05:00
parent ed4d19fe96
commit c5f2d04c6c

View File

@ -144,7 +144,7 @@ impl AtRule {
Some(v) => v, Some(v) => v,
None => return Err(format!("{} is not a int.", n).into()), None => return Err(format!("{} is not a int.", n).into()),
}, },
v => return Err(format!("{} is not a number.", v).into()), v => return Err(format!("{} is not an integer.", v).into()),
}; };
devour_whitespace_or_comment(toks); devour_whitespace_or_comment(toks);
let mut to_toks = Vec::new(); let mut to_toks = Vec::new();
@ -159,7 +159,7 @@ impl AtRule {
Some(v) => v, Some(v) => v,
None => return Err(format!("{} is not a int.", n).into()), None => return Err(format!("{} is not a int.", n).into()),
}, },
v => return Err(format!("{} is not a number.", v).into()), v => return Err(format!("{} is not an integer.", v).into()),
}; };
let mut body = Vec::new(); let mut body = Vec::new();
let mut n = 1; let mut n = 1;