Skip to content

Commit

Permalink
use rake task parameter style message if redmine:email:test parameter…
Browse files Browse the repository at this point in the history
… is blank.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5938 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
marutosi committed May 28, 2011
1 parent 959aa0b commit 60a3ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/email.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 60a3ebf

Please sign in to comment.