From: "Suraj N. Kurapati" <sunaku@gmail.com>
To: mongrel-unicorn@rubyforge.org
Cc: "Suraj N. Kurapati" <sunaku@gmail.com>
Subject: [PATCH] show configuration file path in errors instead of '(eval)'
Date: Tue, 13 Oct 2009 19:34:21 -0700 [thread overview]
Message-ID: <1255487661-20498-1-git-send-email-sunaku@gmail.com> (raw)
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.
-----------------------------------------------------------------------------------
next reply other threads:[~2009-10-14 2:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-14 2:34 Suraj N. Kurapati [this message]
2009-10-14 2:38 ` [PATCH] show configuration file path in errors instead of '(eval)' Suraj Kurapati
2009-10-14 6:17 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1255487661-20498-1-git-send-email-sunaku@gmail.com \
--to=sunaku@gmail.com \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).