From e852c194e3e6960889cb0a6aeb781644b089fd35 Mon Sep 17 00:00:00 2001
From: "Kurt B. Kaiser" <kbk@shore.net>
Date: Thu, 23 Dec 2004 04:39:55 +0000
Subject: Improve error message if rpc'l localcall() fails with unexpected
 exception.

---
 Lib/idlelib/rpc.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)
 
-- 
cgit v0.12

