summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Picard <cedric.picard@efrei.net>2014-11-29 00:18:42 +0100
committerCédric Picard <cedric.picard@efrei.net>2014-11-29 00:18:42 +0100
commit27e56e46a13c442fd00eaa7eebf684d69241f2df (patch)
treef576a314f71985d91ff3c7b32196fdcce8a963f7
parent8abf1c607aa41886992496adf58dd8debd1d0a2e (diff)
downloadpasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.tar.gz
pasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.tar.bz2
pasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.zip
include status code in error message
-rwxr-xr-xscripts/pastit.py2
1 files changed, 1 insertions, 1 deletions
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