diff launch @ 18:e88ab99914cf draft

More improvements to the error reportage.
author David Barts <n5jrn@me.com>
date Mon, 20 May 2019 08:40:56 -0700
parents 0d47859f792a
children e93e5e746cc5
line wrap: on
line diff
--- a/launch	Mon May 20 07:34:46 2019 -0700
+++ b/launch	Mon May 20 08:40:56 2019 -0700
@@ -25,6 +25,6 @@
 app, errors = launch(fsroot=args.directory, urlroot=args.path)
 if errors:
     sys.stderr.write("{0}: {1} error{2} detected, aborting\n".format(
-        sys.argv[0], errors, "" if errors == 1 else "s"))
+        MYNAME, errors, "" if errors == 1 else "s"))
     sys.exit(1)
 app.run(host=args.bind, port=args.port)