Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
bacb2df3
Commit
bacb2df3
authored
Jul 16, 2014
by
dbarbera
Browse files
Show input string in error/warning messages
parent
6ff768bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
bacb2df3
...
...
@@ -289,12 +289,12 @@ def get_input_string(root):
def
error
(
root
,
msg
):
''' Return an error message '''
return
'{} -
line
{}'
.
format
(
msg
,
root
.
getLine
(
))
return
'{} -
"
{}
"
'
.
format
(
msg
,
get_input_string
(
root
))
def
warning
(
root
,
msg
):
''' Return a warning message '''
return
'{} -
line
{}'
.
format
(
msg
,
root
.
getLine
(
))
return
'{} -
"
{}
"
'
.
format
(
msg
,
get_input_string
(
root
))
def
tmp
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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