about summary refs log tree commit homepage
path: root/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-30 01:44:44 -0700
committerEric Wong <normalperson@yhbt.net>2009-03-30 01:44:44 -0700
commita35ae281058411f184af53dcdbe9e58421d84f27 (patch)
tree0d4a08cdeb49d5153d38a67cb30d427094bbf7c5 /bin
parent12134471a3ba93d9882f225a368bf738844a9d18 (diff)
downloadunicorn-a35ae281058411f184af53dcdbe9e58421d84f27.tar.gz
Makes problems easier to solve if we dump the
exception...
Diffstat (limited to 'bin')
-rwxr-xr-xbin/unicorn_rails4
1 files changed, 2 insertions, 2 deletions
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