X-Git-Url: http://dolda2000.com/gitweb/?p=pdm.git;a=blobdiff_plain;f=pdm-repl;fp=pdm-repl;h=992df4ff87d121c22c59e60b6aa1a3cc419d4ffe;hp=daa8c1888da9e8c0e027fe3a02be60ed9d388819;hb=64f81f01cc99f24467290db6c9be607a61a3c25e;hpb=34a3ccd619725d341dc7befa245e9c18ee88f945 diff --git a/pdm-repl b/pdm-repl index daa8c18..992df4f 100755 --- a/pdm-repl +++ b/pdm-repl @@ -14,7 +14,11 @@ for o, a in opts: if len(args) < 1: usage(sys.stderr) sys.exit(1) -cl = pdm.cli.replclient(args[0]) +try: + cl = pdm.cli.replclient(args[0]) +except Exception as e: + sys.stderr.write("%s: %s\n" % (args[0], e)) + sys.exit(1) buf = "" while True: