Skip to content

Commit

Permalink
Fix url of Java not found error (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
domi4484 authored Jul 19, 2023
1 parent 6876553 commit 61d889d
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions modelbaker/iliwrapper/ili2dbutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ class JavaNotFoundError(FileNotFoundError):
If not, no executable was found at all.
"""

JAVA_DOWNLOAD_URL = "https://adoptium.net/download/"
PLUGIN_CONFIGURATION_URL = "https://opengisch.github.io/QgisModelBaker/user_guide/plugin_configuration/#interlis-settings"

def __init__(self, java_version=None):
super().__init__()

Expand All @@ -344,10 +347,17 @@ def error_string(self):
if self.java_version:
return QCoreApplication.translate(
"ili2dbutils",
'Wrong java version found. Qgis Model Baker requires at least java version 8. Please <a href="https://java.com/en/download/">install Java</a> and or <a href="#configure">configure a custom java path</a>.<br/><br/>Java Version:<br/>{}',
).format(self.html_java_version)
'Wrong java version found. Qgis Model Baker requires at least java version 8. Please <a href="{0}">install Java</a> and or <a href="{1}">configure a custom java path</a>.<br/><br/>Java Version:<br/>{2}',
).format(
JavaNotFoundError.JAVA_DOWNLOAD_URL,
JavaNotFoundError.PLUGIN_CONFIGURATION_URL,
self.html_java_version,
)
else:
return QCoreApplication.translate(
"ili2dbutils",
'Java 8 could not be found. Please <a href="https://java.com/en/download/">install Java</a> and or <a href="#configure">configure a custom java path</a>.',
'Java 8 could not be found. Please <a href="{}">install Java</a> and or <a href="{}">configure a custom java path</a>.'.format(
JavaNotFoundError.JAVA_DOWNLOAD_URL,
JavaNotFoundError.PLUGIN_CONFIGURATION_URL,
),
)

0 comments on commit 61d889d

Please sign in to comment.