Skip to content

Commit

Permalink
Remote client: Improve messages for Spyder/server mismatch
Browse files Browse the repository at this point in the history
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
  • Loading branch information
2 people authored and hlouzada committed Nov 25, 2024
1 parent bbe54b6 commit 2fd03ee
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions spyder/plugins/remoteclient/widgets/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,16 @@ def on_server_version_mismatch(self, config_id, version: str):
self,
_("Remote server error"),
_(
"When trying to connect to the server <b>{}</b>, we detected "
"that the version of <tt>spyder-remote-services</tt>, the "
"package Spyder needs to communicate to, is <b>{}</b>, which "
"is greater than the maximum one currently supported "
"(<b>{}</b>)."
"The version of <tt>spyder-remote-services</tt> on the"
"remote host <b>{server}</b> (<b>{srs_version}</b>) is newer"
"than the latest Spyder supports (<b>{max_version}</b>)."
"<br><br>"
"Please update Spyder to fix this problem."
).format(server_name, version, SPYDER_REMOTE_MAX_VERSION),
"Please update Spyder to be able to connect to this host."
).format(
server=server_name,
srs_version=version,
max_version=SPYDER_REMOTE_MAX_VERSION,
),
QMessageBox.Ok,
)

Expand Down

0 comments on commit 2fd03ee

Please sign in to comment.