From f697ca543e35dc0ffa50576f7a98559a47fc0b05 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 1 Sep 2010 19:46:11 -0700 Subject: [PATCH] Extremely basic Radar integration --- lib/vagrant.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/vagrant.rb b/lib/vagrant.rb index f80c4502b..839068211 100644 --- a/lib/vagrant.rb +++ b/lib/vagrant.rb @@ -1,6 +1,7 @@ require 'json' require 'i18n' require 'virtualbox' +require 'radar' require 'vagrant/util/glob_loader' module Vagrant @@ -24,6 +25,14 @@ module Vagrant end end +# Setup Radar application for exception catching +Radar::Application.new(:vagrant) do |app| + app.reject :class, Vagrant::Errors::VagrantError + app.reject :class, SystemExit + app.reporters.use :file + app.rescue_at_exit! +end + # Default I18n to load the en locale I18n.load_path << File.expand_path("templates/locales/en.yml", Vagrant.source_root)