Suraj N. Kurapati
2009-Oct-14 02:34 UTC
[PATCH] show configuration file path in errors instead of ''(eval)''
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 end def reload #:nodoc: - instance_eval(File.read(config_file)) if config_file + instance_eval(File.read(config_file), config_file) if config_file end def commit!(server, options = {}) #:nodoc: -- 1.6.3.1 ----------------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------------
Suraj Kurapati
2009-Oct-14 02:38 UTC
[PATCH] show configuration file path in errors instead of ''(eval)''
On Tue, Oct 13, 2009 at 7:34 PM, Suraj N. Kurapati <sunaku at gmail.com> wrote:> 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.Sigh, please ignore the above automatically-added legal disclaimer notice. :-( Thanks for your consideration.
Eric Wong
2009-Oct-14 06:17 UTC
[PATCH] show configuration file path in errors instead of ''(eval)''
"Suraj N. Kurapati" <sunaku at gmail.com> wrote:> also __FILE__ did not reflect configuration file path > --- > lib/unicorn/configurator.rb | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-)Thanks Suraj! Applied and pushed out. -- Eric Wong