diff options
| author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-01-30 08:57:07 -0800 | 
|---|---|---|
| committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-01-30 11:51:07 -0800 | 
| commit | 1b3e8614e7638fb7e87ec7e85bfbe8447432c53c (patch) | |
| tree | b550077dad999c93051b8106c96fdf5f3586d298 /src | |
| parent | 1ed6d2102bc0a08648026ece8cc069fda592a6a2 (diff) | |
XPath: Reword brace mismatch errors for clarity
Diffstat (limited to 'src')
| -rw-r--r-- | src/pugixml.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 94bd8ae..c6fee40 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -11272,7 +11272,7 @@ PUGI__NS_BEGIN  				if (!n) return 0;  				if (_lexer.current() != lex_close_brace) -					return error("Unmatched braces"); +					return error("Expected ')' to match an opening '('");  				_lexer.next(); @@ -11366,7 +11366,7 @@ PUGI__NS_BEGIN  				if (!n) return 0;  				if (_lexer.current() != lex_close_square_brace) -					return error("Unmatched square brace"); +					return error("Expected ']' to match an opening '['");  				_lexer.next();  			} @@ -11535,7 +11535,7 @@ PUGI__NS_BEGIN  				if (!pred) return 0;  				if (_lexer.current() != lex_close_square_brace) -					return error("Unmatched square brace"); +					return error("Expected ']' to match an opening '['");  				_lexer.next();  				if (last) last->set_next(pred);  | 
