Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Leger2014-03-13 13:59:09 +0000
committerFrederic Leger2014-03-13 15:06:58 +0000
commitfcee9e4889c7304a4210df4720432234ae2d4778 (patch)
tree922420eebc2ff3a9f70962b5d003fb33cc825b9c /python/src/tcf/services/remote/ExpressionsProxy.py
parente5d5f9bbe2c36eb1bd2debfd27411b55d0492bb2 (diff)
downloadorg.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.tar.gz
org.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.tar.xz
org.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.zip
Improve debug output in the case of exception.
Another ound of adding the stacktrace at the time of the exception.
Diffstat (limited to 'python/src/tcf/services/remote/ExpressionsProxy.py')
-rw-r--r--python/src/tcf/services/remote/ExpressionsProxy.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/src/tcf/services/remote/ExpressionsProxy.py b/python/src/tcf/services/remote/ExpressionsProxy.py
index 19dde711b..4d21ca895 100644
--- a/python/src/tcf/services/remote/ExpressionsProxy.py
+++ b/python/src/tcf/services/remote/ExpressionsProxy.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
@@ -53,7 +53,8 @@ class ExpressionsProxy(expressions.ExpressionsService):
if not error:
assert len(args) == 2
error = self.toError(args[0])
- ctx = expressions.Expression(args[1])
+ if args[1]:
+ ctx = expressions.Expression(args[1])
done.doneCreate(self.token, error, ctx)
return CreateCommand().token
@@ -159,4 +160,6 @@ class ChannelEventListener(channel.EventListener):
else:
raise IOError("Expressions service: unknown event: " + name)
except Exception as x:
+ import sys
+ x.tb = sys.exc_info()[2]
self.service.channel.terminate(x)

Back to the top