mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] more explicite error message for dyndns subscribe server failure
This commit is contained in:
parent
fa152adee6
commit
de305ce18e
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ def dyndns_subscribe(subscribe_host="dyndns.yunohost.org", domain=None, key=None
|
||||||
try:
|
try:
|
||||||
error = json.loads(r.text)['error']
|
error = json.loads(r.text)['error']
|
||||||
except:
|
except:
|
||||||
error = "Server error"
|
error = "Server error, code: %s. (Message: \"%s\")" % (r.status_code, r.text)
|
||||||
raise MoulinetteError(errno.EPERM,
|
raise MoulinetteError(errno.EPERM,
|
||||||
m18n.n('dyndns_registration_failed', error=error))
|
m18n.n('dyndns_registration_failed', error=error))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue