Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/tcf/services/remote/DiagnosticsProxy.py')
-rw-r--r--python/src/tcf/services/remote/DiagnosticsProxy.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/src/tcf/services/remote/DiagnosticsProxy.py b/python/src/tcf/services/remote/DiagnosticsProxy.py
index dd7fb4132..31e506d79 100644
--- a/python/src/tcf/services/remote/DiagnosticsProxy.py
+++ b/python/src/tcf/services/remote/DiagnosticsProxy.py
@@ -1,5 +1,5 @@
# *****************************************************************************
-# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others.
+# * Copyright (c) 2011, 2013-2014, 2016 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
@@ -58,10 +58,13 @@ class DiagnosticsProxy(diagnostics.DiagnosticsService):
if isinstance(err, errors.ErrorReport):
errMap = err.getAttributes()
else:
+ # Exception.message does not exist in python3, better use
+ # str(Exception)
+
errMap = {
errors.ERROR_TIME: int(time.time() * 1000),
errors.ERROR_CODE: errors.TCF_ERROR_OTHER,
- errors.ERROR_FORMAT: err.message
+ errors.ERROR_FORMAT: str(err)
}
done = self._makeCallback(done)
service = self

Back to the top