Skip to content
Snippets Groups Projects
Commit 3657ad76 authored by Ferenc Schulcz's avatar Ferenc Schulcz
Browse files

Further elaborate error messages

parent f4c2c2ac
Branches
No related tags found
No related merge requests found
......@@ -72,7 +72,10 @@ def dyndnsRegister(**kwargs):
for s in registrationStatuses:
if s[1] > 299:
allSuccess = False
print(f"Dyndns registration error: {s[0]} was unreachable.")
if s[1] == 600:
print(f"Dyndns registration error: {s[0]} was unreachable.")
else:
print(f"Dyndns registration error: {s[0]} gave HTTP code {s[1]}.")
else:
allFail = False
if allFail:
......@@ -104,7 +107,10 @@ def dyndnsUpdate(**kwargs):
for s in updateStatuses:
if s[1] > 299:
allSuccess = False
print(f"Dyndns update error: {s[0]} was not reachable.")
if s[1] == 600:
print(f"Dyndns update error: {s[0]} was not reachable.")
else:
print(f"Dyndns update error: {s[0]} gave HTTP code {s[1]}.")
else:
allFail = False
if allFail:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment