mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/CSS: Make debug messages in parse_simple_selector() more useful
This commit is contained in:
parent
7de5032e73
commit
ffdf0268dd
|
|
@ -831,7 +831,7 @@ Parser::ParseErrorOr<Optional<Selector::SimpleSelector>> Parser::parse_simple_se
|
|||
tokens.reconsume_current_input_token();
|
||||
return Optional<Selector::SimpleSelector> {};
|
||||
default:
|
||||
dbgln_if(CSS_PARSER_DEBUG, "!!! Invalid simple selector!");
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Unrecognized delimiter in selector: '{}'", first_value.token().to_string());
|
||||
return ParseError::SyntaxError;
|
||||
}
|
||||
}
|
||||
|
|
@ -853,7 +853,7 @@ Parser::ParseErrorOr<Optional<Selector::SimpleSelector>> Parser::parse_simple_se
|
|||
if (first_value.is(Token::Type::Colon))
|
||||
return TRY(parse_pseudo_simple_selector(tokens));
|
||||
|
||||
dbgln_if(CSS_PARSER_DEBUG, "!!! Invalid simple selector!");
|
||||
dbgln_if(CSS_PARSER_DEBUG, "Invalid simple selector: {}", first_value.to_debug_string());
|
||||
return ParseError::SyntaxError;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user