wb.py: improved error msgs when sending to URL

This commit is contained in:
pedro 2024-11-08 11:27:31 +01:00
parent 71e06b13a4
commit 8ac0da99fe
1 changed files with 2 additions and 2 deletions

View File

@ -332,10 +332,10 @@ def send_snapshot_to_devicehub(snapshot, token, url, legacy):
print(exec_cmd(qr)) print(exec_cmd(qr))
print(f"url: {ev_url}") print(f"url: {ev_url}")
else: 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: 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"): def load_config(config_file="settings.ini"):