diff options
author | Cédric Picard <cedric.picard@efrei.net> | 2014-11-29 00:18:42 +0100 |
---|---|---|
committer | Cédric Picard <cedric.picard@efrei.net> | 2014-11-29 00:18:42 +0100 |
commit | 27e56e46a13c442fd00eaa7eebf684d69241f2df (patch) | |
tree | f576a314f71985d91ff3c7b32196fdcce8a963f7 /scripts/pastit.py | |
parent | 8abf1c607aa41886992496adf58dd8debd1d0a2e (diff) | |
download | pasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.tar.gz pasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.tar.bz2 pasteme-27e56e46a13c442fd00eaa7eebf684d69241f2df.zip |
include status code in error message
Diffstat (limited to 'scripts/pastit.py')
-rwxr-xr-x | scripts/pastit.py | 2 |
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 |