[PATCH] show configuration file path in errors instead of '(eval)'

Suraj N. Kurapati sunaku at gmail.com
Tue Oct 13 22:34:21 EDT 2009

also __FILE__ did not reflect configuration file path
 lib/unicorn/configurator.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb
index c7afece..80584f0 100644
--- a/lib/unicorn/configurator.rb
+++ b/lib/unicorn/configurator.rb
@@ -91,7 +91,7 @@ module Unicorn
     def reload #:nodoc:
-      instance_eval(File.read(config_file)) if config_file
+      instance_eval(File.read(config_file), config_file) if config_file
     def commit!(server, options = {}) #:nodoc:

This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.

More information about the mongrel-unicorn mailing list