From 421c5e0be140959dd4eccfd09548ddc7abcfa0ac Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Mon, 14 Jul 2008 18:51:23 +0200 Subject: 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. --- firstaidkit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit