mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-28 00:06:23 -05: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(
|
pluginPath = os.path.normpath(os.path.join(
|
||||||
os.path.split(os.path.dirname(__file__))[0], os.pardir))
|
os.path.split(os.path.dirname(__file__))[0], os.pardir))
|
||||||
|
|
||||||
|
REQUIRED_VERSION = '2.3.'
|
||||||
|
|
||||||
|
|
||||||
class SagaAlgorithmProvider(QgsProcessingProvider):
|
class SagaAlgorithmProvider(QgsProcessingProvider):
|
||||||
|
|
||||||
@ -85,8 +87,8 @@ class SagaAlgorithmProvider(QgsProcessingProvider):
|
|||||||
self.tr('Processing'), Qgis.Critical)
|
self.tr('Processing'), Qgis.Critical)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not version.startswith('2.3.'):
|
if not version.startswith(REQUIRED_VERSION):
|
||||||
QgsMessageLog.logMessage(self.tr('Problem with SAGA installation: unsupported SAGA version found.'),
|
QgsMessageLog.logMessage(self.tr('Problem with SAGA installation: unsupported SAGA version (found: {}, required: {}).').format(version, REQUIRED_VERSION),
|
||||||
self.tr('Processing'),
|
self.tr('Processing'),
|
||||||
Qgis.Critical)
|
Qgis.Critical)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user