error: Embed context information in exception strings
commitf118f962f3cc2a968ac0087937ce4ba2a02e4a7d
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Tue, 11 Jan 2011 02:51:08 +0000 (11 02:51 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Tue, 11 Jan 2011 02:51:08 +0000 (11 02:51 +0000)
tree06f373e5c85e208cecc08612e9212e49aa74f13a
parentc4c7342b15ff517bba2c0d6e416b847b57c59b75
error: Embed context information in exception strings

Exceptions look for a ._context attribute and embed it in the string returned
by __str__().  If the attribute isn't set (or if it's an empty string) nothing
is embedded.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5121 592f7852-d20e-0410-864c-8624ca9c26a4
client/common_lib/error.py