Skip to content

Commit

Permalink
Slightly better error reporting in tp.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
asciipip committed Apr 30, 2015
1 parent afcc157 commit 009bd3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tp.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ def print_tile_status(t):
upload(tile)
redirect(tile)

except ValueError:
except ValueError, e:
print 'Status: 404 Not Found'
print 'Content-type: text/plain'
print ''
print 'That doesn\'t look like a tile URL to me.'
print 'Error:', e

0 comments on commit 009bd3e

Please sign in to comment.