From 93cb07ed61f17a1debbe353963120ab117598f3f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 22 Aug 2018 16:27:11 +0000 Subject: [PATCH] Add status code to error message --- src/yunohost/utils/yunopaste.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/utils/yunopaste.py b/src/yunohost/utils/yunopaste.py index 6df4d0ca6..2b53062d1 100644 --- a/src/yunohost/utils/yunopaste.py +++ b/src/yunohost/utils/yunopaste.py @@ -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"]