bin/vagabond in vagabond-0.2.8 vs bin/vagabond in vagabond-0.2.10
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+#encoding: utf-8
Signal.trap('INT'){ exit 255 }
require 'rubygems'
require 'vagabond'
@@ -42,9 +43,13 @@
require 'vagabond/vagabond'
ARGV.unshift(arg)
Vagabond::Vagabond
end.start
rescue Vagabond::VagabondError => e
+ $stderr.puts "Vagabond error encountered. Exiting: #{e}"
+ if(ENV['VAGABOND_EXIT_DEBUG'])
+ puts "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"
+ end
exit e.exit_code
rescue Exception => e
$stderr.puts "Vagabond exiting. Reason: #{e}"
if(ENV['VAGABOND_EXIT_DEBUG'])
puts "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"