Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
arpeggio-gm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
backend
arpeggio-gm
Commits
43410d8c
Commit
43410d8c
authored
Jan 26, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better error reporting on NoMatch exception.
parent
429fc379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
__init__.py
arpeggio/__init__.py
+4
-0
No files found.
arpeggio/__init__.py
View file @
43410d8c
...
@@ -55,6 +55,10 @@ class NoMatch(Exception):
...
@@ -55,6 +55,10 @@ class NoMatch(Exception):
# By default when NoMatch is thrown we will go up the Parse Model Tree.
# By default when NoMatch is thrown we will go up the Parse Model Tree.
self
.
_up
=
True
self
.
_up
=
True
def
__str__
(
self
):
return
"Expected
%
s at position
%
s."
%
(
self
.
value
,
str
(
self
.
parser
.
pos_to_linecol
(
self
.
position
)))
def
flatten
(
_iterable
):
def
flatten
(
_iterable
):
'''Flattening of python iterables.'''
'''Flattening of python iterables.'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment