mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -04:00
[processing] More verbose error when unsupported SAGA version found
This commit is contained in:
parent
27714fc5a1
commit
16106b8cfa
@ -43,6 +43,8 @@ from . import SagaUtils
|
||||
pluginPath = os.path.normpath(os.path.join(
|
||||
os.path.split(os.path.dirname(__file__))[0], os.pardir))
|
||||
|
||||
REQUIRED_VERSION = '2.3.'
|
||||
|
||||
|
||||
class SagaAlgorithmProvider(QgsProcessingProvider):
|
||||
|
||||
@ -85,8 +87,8 @@ class SagaAlgorithmProvider(QgsProcessingProvider):
|
||||
self.tr('Processing'), Qgis.Critical)
|
||||
return
|
||||
|
||||
if not version.startswith('2.3.'):
|
||||
QgsMessageLog.logMessage(self.tr('Problem with SAGA installation: unsupported SAGA version found.'),
|
||||
if not version.startswith(REQUIRED_VERSION):
|
||||
QgsMessageLog.logMessage(self.tr('Problem with SAGA installation: unsupported SAGA version (found: {}, required: {}).').format(version, REQUIRED_VERSION),
|
||||
self.tr('Processing'),
|
||||
Qgis.Critical)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user