Skip to content

Commit

Permalink
upload: Adding header on error message
Browse files Browse the repository at this point in the history
When an error message is sent to the client, it would help the reader to
understand who is sending this message. So let's prefix it with
"upload.py:" to be more explicit
  • Loading branch information
Erwan Velu committed Apr 3, 2014
1 parent 416907d commit 37286fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/upload.py
Expand Up @@ -329,7 +329,7 @@ def warning_error(error):
def fatal_error(error):
'''Report a shell script with the error message and log
the message on stderr.'''
warning_error(error)
warning_error("upload.py: " + error)
sys.exit(1)


Expand Down

0 comments on commit 37286fc

Please sign in to comment.