Skip to content

Commit

Permalink
[processing] include GRASS path in the error message to make it more …
Browse files Browse the repository at this point in the history
…informative (fix #13188)
  • Loading branch information
alexbruy committed Jan 18, 2016
1 parent c288311 commit 75926f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/grass/GrassUtils.py
Expand Up @@ -365,10 +365,10 @@ def checkGrassIsInstalled(ignorePreviousState=False):
cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return GrassUtils.tr(
'The specified GRASS folder does not contain a valid '
'The specified GRASS folder "{}" does not contain a valid '
'set of GRASS modules. Please, go to the Processing '
'settings dialog, and check that the GRASS folder is '
'correctly configured')
'correctly configured'.format(os.path.join(path, 'bin')))

if not ignorePreviousState:
if GrassUtils.isGrassInstalled:
Expand Down
8 changes: 4 additions & 4 deletions python/plugins/processing/algs/grass7/Grass7Utils.py
Expand Up @@ -363,10 +363,10 @@ def checkGrass7IsInstalled(ignorePreviousState=False):
cmdpath = os.path.join(path, 'bin', 'r.out.gdal.exe')
if not os.path.exists(cmdpath):
return Grass7Utils.tr(
'The specified GRASS GIS 7 folder does not contain a valid '
'set of GRASS GIS 7 modules.\nPlease, go to the Processing '
'settings dialog, and check that the GRASS GIS 7\n'
'folder is correctly configured')
'The specified GRASS 7 folder "{}" does not contain '
'a valid set of GRASS 7 modules.\nPlease, go to the '
'Processing settings dialog, and check that the '
'GRASS 7\nfolder is correctly configured'.format(os.path.join(path, 'bin')))

if not ignorePreviousState:
if Grass7Utils.isGrass7Installed:
Expand Down

0 comments on commit 75926f5

Please sign in to comment.