From: Kurt B. Kaiser <kbk@shore.net> Date: Thu, 23 Dec 2004 04:39:55 +0000 (+0000) Subject: Improve error message if rpc'l localcall() fails with unexpected X-Git-Tag: v2.5a0~2224 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e852c194e3e6960889cb0a6aeb781644b089fd35;p=python Improve error message if rpc'l localcall() fails with unexpected exception. --- diff --git a/Lib/idlelib/rpc.py b/Lib/idlelib/rpc.py index 1620063298..402cfa7fa7 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)