Skip to content

Commit 7dba261

Browse files
committed
better error message
1 parent 2e0fbc0 commit 7dba261

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/htmlunit/html/DomNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ protected SelectorList getSelectorList(final String selectors, final BrowserVers
18641864
final SelectorList selectorList = parser.parseSelectors(selectors);
18651865
// in case of error parseSelectors returns null
18661866
if (errorHandler.errorDetected()) {
1867-
throw new CSSException("Invalid selectors: " + selectors);
1867+
throw new CSSException("Invalid selectors: '" + selectors + "'");
18681868
}
18691869

18701870
if (selectorList != null) {

0 commit comments

Comments
 (0)