jhbuild r2587 - in trunk: . jhbuild
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2587 - in trunk: . jhbuild
- Date: Thu, 18 Dec 2008 20:50:40 +0000 (UTC)
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]