summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-08-19 11:47:51 +0200
committerKarel Klic <kklic@redhat.com>2010-08-19 11:47:51 +0200
commitef441ae0a59cfb08700b51da0e464e3f624b4d6a (patch)
treeebd17d3ef4bac0c8a3469c59d3078a17331601b2 /src
parentd6f6a7a98b83de0d0aa3792fb187b66d9d15953d (diff)
downloadabrt-ef441ae0a59cfb08700b51da0e464e3f624b4d6a.tar.gz
abrt-ef441ae0a59cfb08700b51da0e464e3f624b4d6a.tar.xz
abrt-ef441ae0a59cfb08700b51da0e464e3f624b4d6a.zip
enrich an exception with the dump directory path; it's useful for debugging
Diffstat (limited to 'src')
-rw-r--r--src/gui/CCDump.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/CCDump.py b/src/gui/CCDump.py
index d8a15f9a..e6dc78c6 100644
--- a/src/gui/CCDump.py
+++ b/src/gui/CCDump.py
@@ -75,7 +75,15 @@ class Dump():
return int(self.Count)
def getExecutable(self):
- return self.executable
+ try:
+ return self.executable
+ except AttributeError, err:
+ # try to rethrow the exception with the directory path, as
+ # it's useful to know it in this case
+ if "DumpDir" in self.__dict__:
+ raise AttributeError("{0} (dump directory: {1})".format(str(err), self.DumpDir))
+ else:
+ raise
def getPackage(self):
return self.package