Skip to content

Commit 4fdb54b

Browse files
hiepxanhai
authored andcommitted
update: parser.js to clarify error message
clarify error message by specify error variable
1 parent 06006ec commit 4fdb54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ class Parser {
593593

594594
unknownWord(tokens) {
595595
throw this.input.error(
596-
'Unknown word',
596+
'Unexpected character "' + tokens[0][1] + '" in selector. Check CSS selector documentation for proper syntax.''Unknown word',
597597
{ offset: tokens[0][2] },
598598
{ offset: tokens[0][2] + tokens[0][1].length }
599599
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy