error inspects message

This commit is contained in:
ConnorSkees 2020-04-26 19:12:36 -04:00
parent d53b44aafe
commit 6f57797c29
2 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@ impl AtRule {
super_selector, super_selector,
)?; )?;
return Err((message.to_css_string(span)?, span.merge(kind_span)).into()); return Err((message.inspect(span)?, span.merge(kind_span)).into());
} }
AtRuleKind::Warn => { AtRuleKind::Warn => {
let Spanned { let Spanned {

View File

@ -13,3 +13,4 @@ error!(
); );
error!(error_unquoted_string, "a {\n @error hi;\n}\n", "Error: hi"); error!(error_unquoted_string, "a {\n @error hi;\n}\n", "Error: hi");
error!(error_arithmetic, "a {\n @error 1 + 1;\n}\n", "Error: 2"); error!(error_arithmetic, "a {\n @error 1 + 1;\n}\n", "Error: 2");
error!(error_is_inspected, "a {\n @error null;\n}\n", "Error: null");