From 27e56e46a13c442fd00eaa7eebf684d69241f2df Mon Sep 17 00:00:00 2001 From: Cédric Picard Date: Sat, 29 Nov 2014 00:18:42 +0100 Subject: include status code in error message --- scripts/pastit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/pastit.py b/scripts/pastit.py index 3527b4f..63e5ab3 100755 --- a/scripts/pastit.py +++ b/scripts/pastit.py @@ -42,7 +42,7 @@ def get(url): if req.status_code == 404: return "Paste not found" elif not req.ok: - return "An error occured" + return "An error occured (%s)" % req.status_code return req.text -- cgit v1.2.3