[farsight2/master] Print more explicit error messages in demo gui

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:20:52 PST 2008


---
 tests/gui/fs2-gui.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/gui/fs2-gui.py b/tests/gui/fs2-gui.py
index b9d23f3..1bc4a6b 100644
--- a/tests/gui/fs2-gui.py
+++ b/tests/gui/fs2-gui.py
@@ -31,16 +31,16 @@ try:
 
     import gtk, gtk.glade, gobject, gtk.gdk
     import gobject
-except ImportError:
-    raise SystemExit("PyGTK couldn't be found !")
+except ImportError, e:
+    raise SystemExit("PyGTK couldn't be found ! (%s)" % (e[0]))
 
 try:
     import pygst
     pygst.require('0.10')
         
     import gst
-except ImportError:
-    raise SystemExit("Gst-Python couldn't be found!")
+except ImportError, e:
+    raise SystemExit("Gst-Python couldn't be found! (%s)" % (e[0]))
 try:
     import farsight
 except:
@@ -48,8 +48,8 @@ except:
         sys.path.append(os.path.join(os.path.dirname(__file__),
                                      '..', '..', 'python', '.libs'))
         import farsight
-    except ImportError:
-        raise SystemExit("Farsight couldn't be found!")
+    except ImportError, e:
+        raise SystemExit("Farsight couldn't be found! (%s)" % (e[0]))
 
 
 
-- 
1.5.6.5




More information about the farsight-commits mailing list