diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2004-12-23 04:39:55 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2004-12-23 04:39:55 (GMT) |
commit | e852c194e3e6960889cb0a6aeb781644b089fd35 (patch) | |
tree | ede56360ec0905406b1831eecd66e5a9001f7ea4 /Lib | |
parent | 5c3df35b6b1f48cb48c91b0c7a8754590a694171 (diff) | |
download | cpython-e852c194e3e6960889cb0a6aeb781644b089fd35.zip cpython-e852c194e3e6960889cb0a6aeb781644b089fd35.tar.gz cpython-e852c194e3e6960889cb0a6aeb781644b089fd35.tar.bz2 |
Improve error message if rpc'l localcall() fails with unexpected
exception.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/rpc.py | 4 |
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) |