diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-03-30 01:44:44 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-30 01:44:44 -0700 |
commit | a35ae281058411f184af53dcdbe9e58421d84f27 (patch) | |
tree | 0d4a08cdeb49d5153d38a67cb30d427094bbf7c5 /bin/unicorn_rails | |
parent | 12134471a3ba93d9882f225a368bf738844a9d18 (diff) | |
download | unicorn-a35ae281058411f184af53dcdbe9e58421d84f27.tar.gz |
Makes problems easier to solve if we dump the exception...
Diffstat (limited to 'bin/unicorn_rails')
-rwxr-xr-x | bin/unicorn_rails | 4 |
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 |