]> source.dussan.org Git - redmine.git/commitdiff
use rake task parameter style message if redmine:email:test parameter is blank.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 28 May 2011 01:42:35 +0000 (01:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 28 May 2011 01:42:35 +0000 (01:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5938 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/email.rake

index 957d9d44c044d43cee2b79be10cec184d2425fa7..5bd59f0f8ab06852995d5feac7ae32777e506cca 100644 (file)
@@ -169,7 +169,7 @@ END_DESC
     desc "Send a test email to the user with the provided login name"\r
     task :test, :login, :needs => :environment do |task, args|\r
       include Redmine::I18n\r
-      abort l(:notice_email_error, "Please include the user login to test with. Example: login=examle-login") if args[:login].blank?\r
+      abort l(:notice_email_error, "Please include the user login to test with. Example: rake redmine:email:test[login]") if args[:login].blank?\r
 \r
       user = User.find_by_login(args[:login])\r
       abort l(:notice_email_error, "User #{args[:login]} not found") unless user.logged?\r