diff options
Diffstat (limited to 'lib/tst')
-rwxr-xr-x | lib/tst | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,10 +1,19 @@ #!/usr/bin/env ruby20 $: << '.' -require 'pry' -#require 'pp' -#require 'rubygems' +require 'pry' if ENV['DEV'] require 'oxidized' -k = Oxidized.new - +begin + Oxidized.new +rescue Exception => e + open Oxidized::Config::Crash, 'w' do |file| + file.puts '-' * 50 + file.puts Time.now.utc + file.puts '-' * 50 + file.puts e.backtrace + file.puts '-' * 50 + file.puts caller + end + raise +end |