diff --git a/sanic/__main__.py b/sanic/__main__.py index b6a66b8e..cc580566 100644 --- a/sanic/__main__.py +++ b/sanic/__main__.py @@ -35,10 +35,10 @@ if __name__ == "__main__": app.run(host=args.host, port=args.port, workers=args.workers, debug=args.debug, ssl=ssl) - except ImportError: + except ImportError as e: log.error("No module named {} found.\n" " Example File: project/sanic_server.py -> app\n" " Example Module: project.sanic_server.app" - .format(module_name)) + .format(e.name)) except ValueError as e: log.error("{}".format(e))