X-Git-Url: http://dolda2000.com/gitweb/?p=pdm.git;a=blobdiff_plain;f=pdm-repl;h=cc5c2890465d1c39e46902b0644be9c7cd50d9f8;hp=c8fe2773768896b132a80d1e69d287ca21be259e;hb=98ecc02e068d7108325210c9fd9f510ec7bae66c;hpb=16e7fd3d4abbec9f5e6d976a2feca87176e79e29 diff --git a/pdm-repl b/pdm-repl index c8fe277..cc5c289 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: