[gnome-games] glchess: Print traceback to stderr if can't import modules



commit 2fbe815f94295db227c3907a9ff71548a91b4b87
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Jun 8 16:10:25 2010 +1000

    glchess: Print traceback to stderr if can't import modules

 glchess/src/glchess.in.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glchess/src/glchess.in.in b/glchess/src/glchess.in.in
index 3cb0fad..5d58b97 100644
--- a/glchess/src/glchess.in.in
+++ b/glchess/src/glchess.in.in
@@ -42,6 +42,7 @@ except:
 def report_error():
     import os.path
     import gettext
+    import traceback
     from gettext import gettext as _
 
     gettext.bindtextdomain('gnome-games', os.path.join('@prefix@', 'share', 'locale'))
@@ -51,6 +52,7 @@ def report_error():
     # Translators: This is the contents of the dialog displayed if glChess cannot start
     description = _("""Chess is not able to start because required application files are not installed. If you are currently upgrading your system please wait until the upgrade has completed.""")
 
+    traceback.print_exc()
     try:
         import gtk
     except ImportError:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]