jhbuild r2587 - in trunk: . jhbuild



Author: fpeters
Date: Thu Dec 18 20:50:40 2008
New Revision: 2587
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2587&view=rev

Log:
* jhbuild/config.py: display a better message on missing configuration
file.  (closes: #564878)



Modified:
   trunk/ChangeLog
   trunk/jhbuild/config.py

Modified: trunk/jhbuild/config.py
==============================================================================
--- trunk/jhbuild/config.py	(original)
+++ trunk/jhbuild/config.py	Thu Dec 18 20:50:40 2008
@@ -105,6 +105,9 @@
             raise FatalError(_('could not load config defaults'))
         config['__file__'] = filename
         self.filename = filename
+        if not os.path.exists(filename):
+            raise FatalError(_('could not load config file, %s is missing') % filename)
+
         try:
             execfile(filename, config)
         except Exception:



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