Skip to content

Commit

Permalink
Report GRASS warnings with pushWarning instead of reportError and che…
Browse files Browse the repository at this point in the history
…ck translated warning or error
  • Loading branch information
nicogodet authored and nyalldawson committed Oct 25, 2024
1 parent ef3b180 commit 5c803b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/grassprovider/grass_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@ def readline_with_recover(stdout):
if 'r.out' in line or 'v.out' in line:
grassOutDone = True
loglines.append(line)
if any([l in line for l in ['WARNING', 'ERROR']]):
if any([l in line for l in ['WARNING', GrassUtils.tr('WARNING')]]):
feedback.pushWarning(line.strip())
elif any([l in line for l in ['ERROR', GrassUtils.tr('ERROR')]]):
feedback.reportError(line.strip())
elif 'Segmentation fault' in line:
feedback.reportError(line.strip())
Expand Down

0 comments on commit 5c803b1

Please sign in to comment.