summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-07-14 18:51:23 +0200
committerJoel Andres Granados <jgranado@redhat.com>2008-07-14 18:51:23 +0200
commit421c5e0be140959dd4eccfd09548ddc7abcfa0ac (patch)
tree58009383d664d88623a7455774d8f666bbdb225f /firstaidkit
parent4959efbe21c667bf95cef0f2cc2d66f69b9da4ec (diff)
downloadfirstaidkit-421c5e0be140959dd4eccfd09548ddc7abcfa0ac.tar.gz
firstaidkit-421c5e0be140959dd4eccfd09548ddc7abcfa0ac.tar.xz
firstaidkit-421c5e0be140959dd4eccfd09548ddc7abcfa0ac.zip
Be a bit more informative with the error message.
Sometimes just pringing the error message does not give us a lot of information of context. The KeyError for instance only prints out the key that was not found. With no context this is of little or no use.
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit3
1 files changed, 2 insertions, 1 deletions
diff --git a/firstaidkit b/firstaidkit
index af2b36e..cb37600 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -338,7 +338,8 @@ if __name__=="__main__":
"along with the following message. You can create a ticket "
"at https://fedorahosted.org/firstaidkit/newticket\n\n")
Config.write(sys.stdout)
- print("\n%s"% e)
+ print("Description of the error:\nError message:%s\n " \
+ "Error class %s"% (e, e.__class__))
finally:
singlerun.end()