bin/rconf in rconf-0.5.0 vs bin/rconf in rconf-0.5.1

- old
+ new

@@ -86,13 +86,14 @@ begin lang = Language.load(options[:config]) report_fatal("Validation of configuration file failed:\n -#{lang.validation_errors.join("\n -").map(&:red)}") unless lang.validation_errors.empty? Dir.chdir(File.dirname(options[:config])) { lang.configurators.each(&:run) } report("Successfully configured #{File.basename(options[:config], '.rc').blue} for #{Platform.family.to_s.blue}") - lang.configurators.each { |c| report("NOTE: #{c.post_note}") if c.post_note } rescue Exception => e raise if e.is_a?(SystemExit) report_fatal("Execution failed with exception '#{e.message.red}'\n#{e.backtrace.join("\n").map(&:grey)}") + ensure + lang.configurators.each { |c| report("!!NOTE: #{c.post_note}") if c.post_note } end end end end