]> granicus.if.org Git - python/commitdiff
When emitting a command-line error message, *say* it's an error.
authorGreg Ward <gward@python.net>
Thu, 16 Dec 1999 01:19:05 +0000 (01:19 +0000)
committerGreg Ward <gward@python.net>
Thu, 16 Dec 1999 01:19:05 +0000 (01:19 +0000)
Lib/distutils/core.py

index 13bf9c7fcbc899300ae406f2080b6d1c1e0e88b9..fd5ba907fb00b56e7fa66c8e3d23fe3af34831d6 100644 (file)
@@ -88,7 +88,7 @@ def setup (**attrs):
         ok = dist.parse_command_line (sys.argv[1:])
     except DistutilsArgError, msg:
         sys.stderr.write (usage + "\n")
-        raise SystemExit, msg
+        raise SystemExit, "error: %s" % msg
 
     # And finally, run all the commands found on the command line.
     if ok: