unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* [PATCH] show configuration file path in errors instead of '(eval)'
@ 2009-10-14  2:34 Suraj N. Kurapati
  2009-10-14  2:38 ` Suraj Kurapati
  2009-10-14  6:17 ` Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Suraj N. Kurapati @ 2009-10-14  2:34 UTC (permalink / raw)
  To: mongrel-unicorn; +Cc: Suraj N. Kurapati

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.
-----------------------------------------------------------------------------------

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] show configuration file path in errors instead of  '(eval)'
  2009-10-14  2:34 [PATCH] show configuration file path in errors instead of '(eval)' Suraj N. Kurapati
@ 2009-10-14  2:38 ` Suraj Kurapati
  2009-10-14  6:17 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Suraj Kurapati @ 2009-10-14  2:38 UTC (permalink / raw)
  To: mongrel-unicorn

On Tue, Oct 13, 2009 at 7:34 PM, Suraj N. Kurapati <sunaku@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.
_______________________________________________
mongrel-unicorn mailing list
mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] show configuration file path in errors instead of '(eval)'
  2009-10-14  2:34 [PATCH] show configuration file path in errors instead of '(eval)' Suraj N. Kurapati
  2009-10-14  2:38 ` Suraj Kurapati
@ 2009-10-14  6:17 ` Eric Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Eric Wong @ 2009-10-14  6:17 UTC (permalink / raw)
  To: unicorn list

"Suraj N. Kurapati" <sunaku@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-14  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-14  2:34 [PATCH] show configuration file path in errors instead of '(eval)' Suraj N. Kurapati
2009-10-14  2:38 ` Suraj Kurapati
2009-10-14  6:17 ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).