| author | Jerome Guiban | 2012-07-20 03:25:19 (EDT) |
|---|---|---|
| committer | Anton Leherbauer | 2012-07-20 03:25:38 (EDT) |
| commit | db1578790e3fe4f264560b2d10528d337d68aa13 (patch) (side-by-side diff) | |
| tree | 9f6d747ad8af00ab35bee4dbdf47e5490a366c1a | |
| parent | dbe79a1d7a07db80cf78508cdfa9801386896c3b (diff) | |
| download | org.eclipse.tcf-db1578790e3fe4f264560b2d10528d337d68aa13.zip org.eclipse.tcf-db1578790e3fe4f264560b2d10528d337d68aa13.tar.gz org.eclipse.tcf-db1578790e3fe4f264560b2d10528d337d68aa13.tar.bz2 | |
TCF Python: Bug 385160 - Memory.set command fails to generate the error
string when command fails
| -rw-r--r-- | python/src/tcf/services/remote/MemoryProxy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/src/tcf/services/remote/MemoryProxy.py b/python/src/tcf/services/remote/MemoryProxy.py index cb18106..8cf9f30 100644 --- a/python/src/tcf/services/remote/MemoryProxy.py +++ b/python/src/tcf/services/remote/MemoryProxy.py @@ -1,4 +1,4 @@ -# ******************************************************************************* +# ***************************************************************************** # * Copyright (c) 2011, 2012 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 @@ -7,7 +7,7 @@ # * # * Contributors: # * Wind River Systems - initial API and implementation -# ******************************************************************************* +# ***************************************************************************** from tcf import errors, channel from tcf.services import memory @@ -195,7 +195,7 @@ class MemoryCommand(Command): if len(cmd) > 72: cmd = cmd[0:72] + "..." e = MemoryErrorReport( "TCF command exception:\nCommand: %s\nException: %s\nError code: %d" % ( - cmd, self.toErrorString(data), code), + cmd, errors.toErrorString(data), code), data, addr, ranges) caused_by = data.get(errors.ERROR_CAUSED_BY) if caused_by is not None: e.caused_by = self.toError(caused_by, False) |

