smailq: Fix printerr invocations
authorMatei David <matei@cs.toronto.edu>
Fri, 8 May 2015 16:48:12 +0000 (12:48 -0400)
committerStefan Huber <shuber@sthu.org>
Tue, 12 May 2015 18:34:01 +0000 (20:34 +0200)
smailq

diff --git a/smailq b/smailq
index 73c954f..f0ad909 100755 (executable)
--- a/smailq
+++ b/smailq
@@ -434,7 +434,7 @@ if __name__ == "__main__":
                 assert(False)
 
     except getopt.GetoptError as e:
-        printerr("Error parsing arguments:", e)
+        printerr("Error parsing arguments: " + str(e))
         usage()
         sys.exit(os.EX_USAGE)
 
@@ -458,7 +458,7 @@ if __name__ == "__main__":
             os.mkdir(conf.getlogdir())
 
     except Exception as e:
-        printerr("Error reading config file:", e)
+        printerr("Error reading config file: " + str(e))
         sys.exit(os.EX_IOERR)
 
     try: