From 1bc1a4f1b9c72b5c125bd2bac9cb3e8e3e843d23 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 17 May 2021 12:10:08 +0100 Subject: [PATCH] CAPI: Changed "CAPI down" message to be specific The old "Error: Frontier server is down" can easily be confused as "game servers are down". The new version calls out the CAPI specifically. Closes #585 --- L10n/en.template | 4 ++++ companion.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/L10n/en.template b/L10n/en.template index 4aaf4d38..11ed447a 100644 --- a/L10n/en.template +++ b/L10n/en.template @@ -181,7 +181,11 @@ /* [edsm.py] */ "Error: EDSM {MSG}" = "Error: EDSM {MSG}"; + /* Raised when cannot contact the Companion API server. [companion.py] */ +"Error: Frontier CAPI didn't respond" = "Error: Frontier CAPI didn't respond"; + +/* OLD: Raised when cannot contact the Companion API server. [companion.py] */ "Error: Frontier server is down" = "Error: Frontier server is down"; /* Raised when Companion API server is returning old data, e.g. when the servers are too busy. [companion.py] */ diff --git a/companion.py b/companion.py index 4243f817..ca0a529c 100644 --- a/companion.py +++ b/companion.py @@ -169,7 +169,7 @@ class ServerError(Exception): # Raised when cannot contact the Companion API server self.args = args if not args: - self.args = (_('Error: Frontier server is down'),) + self.args = (_("Error: Frontier CAPI didn't respond"),) class ServerLagging(Exception):