mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add status code to error message
This commit is contained in:
parent
b09d71f40b
commit
93cb07ed61
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def yunopaste(data):
|
|||
|
||||
if r.status_code != 200:
|
||||
raise MoulinetteError(errno.EIO,
|
||||
"Something wrong happened while trying to paste data on paste.yunohost.org : %s" % r.text)
|
||||
"Something wrong happened while trying to paste data on paste.yunohost.org : %s, %s" % (r.status_code, r.text))
|
||||
|
||||
try:
|
||||
url = json.loads(r.text)["key"]
|
||||
|
|
Loading…
Add table
Reference in a new issue