summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-28 01:42:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-05-28 01:42:35 +0000
commit60a3ebfa8a476d2b8c1bd4fa151c59aecd9b664c (patch)
tree6a3f1a9b1eae68efd7798d7eeed28304cc1d3afb /lib/tasks
parent959aa0b74e216143cb0936692a1e999ac038f35e (diff)
downloadredmine-60a3ebfa8a476d2b8c1bd4fa151c59aecd9b664c.tar.gz
redmine-60a3ebfa8a476d2b8c1bd4fa151c59aecd9b664c.zip
use rake task parameter style message if redmine:email:test parameter is blank.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5938 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/email.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake
index 957d9d44c..5bd59f0f8 100644
--- a/lib/tasks/email.rake
+++ b/lib/tasks/email.rake
@@ -169,7 +169,7 @@ END_DESC
desc "Send a test email to the user with the provided login name"
task :test, :login, :needs => :environment do |task, args|
include Redmine::I18n
- abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?
+ abort l(:notice_email_error, "Please include the user login to test with. Example: rake redmine:email:test[login]") if args[:login].blank?
user = User.find_by_login(args[:login])
abort l(:notice_email_error, "User #{args[:login]} not found") unless user.logged?