|
From: <jh...@us...> - 2012-04-24 20:00:03
|
Revision: 321
http://etch.svn.sourceforge.net/etch/?rev=321&view=rev
Author: jheiss
Date: 2012-04-24 19:59:57 +0000 (Tue, 24 Apr 2012)
Log Message:
-----------
Wrap the config.xml load step with wrap_exception so that the user gets
a useful error message.
Modified Paths:
--------------
trunk/server/lib/etch.rb
Modified: trunk/server/lib/etch.rb
===================================================================
--- trunk/server/lib/etch.rb 2012-04-24 19:52:53 UTC (rev 320)
+++ trunk/server/lib/etch.rb 2012-04-24 19:59:57 UTC (rev 321)
@@ -285,7 +285,11 @@
end
# Load the config.xml file
- config_xml = Etch.xmlload(config_xml_file)
+ begin
+ config_xml = Etch.xmlload(config_xml_file)
+ rescue Exception => e
+ raise Etch.wrap_exception(e, "Error loading config.xml for #{file}:\n" + e.message)
+ end
# Filter the config.xml file by looking for attributes
begin
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|