From bcfdb059bdc702d78687fa7d7fd69ab91e294941 Mon Sep 17 00:00:00 2001 From: pedro Date: Fri, 8 Nov 2024 11:27:31 +0100 Subject: [PATCH] wb.py: improved error msgs when sending to URL --- workbench-script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workbench-script.py b/workbench-script.py index 41bf2ed..2129f42 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -332,10 +332,10 @@ def send_snapshot_to_devicehub(snapshot, token, url, legacy): print(exec_cmd(qr)) print(f"url: {ev_url}") else: - logger.error(_("Snapshot %s, cannot sent to '%s'"), snapshot["uuid"], url) + logger.error(_("Snapshot %s could not be sent to URL '%s'"), snapshot["uuid"], url) except Exception as e: - logger.error(_("Snapshot not remotely sent to URL '%s'. Do you have internet? Is your server up & running? Is the url token authorized?\n %s"), url, e) + logger.error(_("Snapshot %s not remotely sent to URL '%s'. Do you have internet? Is your server up & running? Is the url token authorized?\n %s"), snapshot["uuid"], url, e) def load_config(config_file="settings.ini"):