Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
badw-it
DHParser
Commits
9279507b
Commit
9279507b
authored
Nov 11, 2018
by
eckhart
Browse files
- Fehler korrigiert
parent
d471ad91
Changes
1
Hide whitespace changes
Inline
Side-by-side
DHParser/transform.py
View file @
9279507b
...
...
@@ -964,7 +964,7 @@ def error_on(context: List[Node],
Checks for `condition`; adds an error or warning message if condition is not met.
"""
node
=
context
[
-
1
]
if
not
condition
(
context
):
if
condition
(
context
):
if
error_msg
:
context
[
0
].
new_error
(
node
,
error_msg
%
node
.
tag_name
if
error_msg
.
find
(
"%s"
)
>
0
else
error_msg
,
error_code
)
...
...
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