From a35ae281058411f184af53dcdbe9e58421d84f27 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 30 Mar 2009 01:44:44 -0700 Subject: unicorn_rails: give more info when aborting Makes problems easier to solve if we dump the exception... --- bin/unicorn_rails | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/unicorn_rails b/bin/unicorn_rails index d0794eb..ba0d690 100755 --- a/bin/unicorn_rails +++ b/bin/unicorn_rails @@ -126,8 +126,8 @@ rails_loader = lambda do || defined?(::RAILS_ENV) or abort "RAILS_ENV not defined by config/boot" defined?(::Rails::VERSION::STRING) or abort "Rails::VERSION::STRING not defined by config/boot" - rescue LoadError - abort "#$0 must be run inside RAILS_ROOT (#{::RAILS_ROOT})" + rescue LoadError => err + abort "#$0 must be run inside RAILS_ROOT=(#{::RAILS_ROOT}) #{err.inspect}" end case config -- cgit v1.2.3-24-ge0c7