fix: add hostname to error output

This commit is contained in:
2023-04-12 06:23:44 +02:00
parent c086730837
commit 7567dbaa4b

View File

@@ -183,7 +183,8 @@ def sizeChanged(hostname, pathsToOptions, path):
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, encoding="utf-8")
stdout, stderr = p.communicate()
if p.wait() != 0:
raise OSError("ssh commmand for backup size info failed '{}' - '{}'".format(stderr, stdout))
raise OSError("ssh commmand for backup size info failed '{}' - '{}' Host: {}".format(
stderr, stdout, hostname))
# parse response #
result = json.loads(stdout)