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
16a0e2e5
Commit
16a0e2e5
authored
Aug 10, 2014
by
Igor Dejanovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rule may override explanation message in NoMatch
parent
7fae479f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
__init__.py
arpeggio/__init__.py
+4
-1
No files found.
arpeggio/__init__.py
View file @
16a0e2e5
...
...
@@ -64,7 +64,10 @@ class NoMatch(Exception):
self
.
exp_str
=
exp_str
if
not
exp_str
:
if
self
.
rule
.
root
:
if
hasattr
(
self
.
rule
,
'_exp_str'
):
# Rule may override error message
self
.
exp_str
=
self
.
rule
.
_exp_str
elif
self
.
rule
.
root
:
self
.
exp_str
=
rule
.
rule_name
elif
isinstance
(
self
.
rule
,
Match
):
self
.
exp_str
=
rule
.
to_match
...
...
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