mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 15:57:14 +03:00
companion: Tweak 'server returned an error' message & translate
This commit is contained in:
parent
89c486401e
commit
431d83b5ca
@ -233,6 +233,9 @@
|
||||
/* Failures to access Frontier CAPI endpoints [companion.py] */
|
||||
"Frontier CAPI query failure" = "Frontier CAPI query failure";
|
||||
|
||||
/* Server errors from Frontier CAPI server [companion.py] */
|
||||
"Frontier CAPI server error" = "Frontier CAPI server error";
|
||||
|
||||
/* CQC rank. [stats.py] */
|
||||
"Gladiator" = "Gladiator";
|
||||
|
||||
|
@ -556,7 +556,7 @@ class Session(object):
|
||||
# Server error. Typically 500 "Internal Server Error" if server is down
|
||||
logger.debug('500 status back from CAPI')
|
||||
self.dump(r)
|
||||
raise ServerError(f'Received error {r.status_code} from server')
|
||||
raise ServerError(f'{_("Frontier CAPI server error")}: {r.status_code}')
|
||||
|
||||
try:
|
||||
r.raise_for_status() # Typically 403 "Forbidden" on token expiry
|
||||
|
Loading…
x
Reference in New Issue
Block a user