summaryrefslogtreecommitdiff
path: root/lib/tst
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tst')
-rwxr-xr-xlib/tst19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/tst b/lib/tst
index b529653..6b314cc 100755
--- a/lib/tst
+++ b/lib/tst
@@ -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