diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py index 9d6c29c0a4..9c1e8e1cdb 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudApiClient.py @@ -119,7 +119,7 @@ class CloudApiClient: except (UnicodeDecodeError, JSONDecodeError, ValueError) as err: error = CloudError(code=type(err).__name__, title=str(err), http_code=str(status_code), id=str(time()), http_status="500") - Logger.logException("e", "Could not parse the stardust response: %s", error) + Logger.logException("e", "Could not parse the stardust response: %s", error.toDict()) return status_code, {"errors": [error.toDict()]} ## Parses the given models and calls the correct callback depending on the result. diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index f9a0a59c81..c9c78caa0f 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -138,10 +138,10 @@ class CloudOutputDeviceManager: ## Handles an API error received from the cloud. # \param errors: The errors received - def _onApiError(self, errors: List[CloudError]) -> None: - text = ". ".join(e.title for e in errors) # TODO: translate errors + def _onApiError(self, errors: List[CloudError] = None) -> None: + Logger.log("w", str(errors)) message = Message( - text = text, + text = self.I18N_CATALOG.i18nc("@info:description", "There was an error connecting to the cloud."), title = self.I18N_CATALOG.i18nc("@info:title", "Error"), lifetime = 10 )