summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2004-12-23 04:39:55 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2004-12-23 04:39:55 (GMT)
commite852c194e3e6960889cb0a6aeb781644b089fd35 (patch)
treeede56360ec0905406b1831eecd66e5a9001f7ea4
parent5c3df35b6b1f48cb48c91b0c7a8754590a694171 (diff)
downloadcpython-e852c194e3e6960889cb0a6aeb781644b089fd35.zip
cpython-e852c194e3e6960889cb0a6aeb781644b089fd35.tar.gz
cpython-e852c194e3e6960889cb0a6aeb781644b089fd35.tar.bz2
Improve error message if rpc'l localcall() fails with unexpected
exception.
-rw-r--r--Lib/idlelib/rpc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py
index 1620063..402cfa7 100644
--- a/Lib/idlelib/rpc.py
+++ b/Lib/idlelib/rpc.py
@@ -199,7 +199,9 @@ class SocketIO(object):
except socket.error:
raise
except:
- self.debug("localcall:EXCEPTION")
+ msg = "*** Internal Error: rpc.py:SocketIO.localcall()\n\n"\
+ " Object: %s \n Method: %s \n Args: %s\n"
+ print>>sys.__stderr__, msg % (oid, method, args)
traceback.print_exc(file=sys.__stderr__)
return ("EXCEPTION", None)