Dolda2000 GitWeb
/
pdm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a3ccd
)
Improved pdm-repl error reporting somewhat.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:20:38 +0000
(07:20 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 7 Jan 2013 06:20:38 +0000
(07:20 +0100)
pdm-repl
patch
|
blob
|
blame
|
history
diff --git
a/pdm-repl
b/pdm-repl
index
daa8c18
..
992df4f
100755
(executable)
--- 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: