Skip to content

Commit 7301357

Browse files
committed
Resolve rapid7#5330, change print_error to print_warning for report_auth_info
Resolve rapid7#5330 for more consistent deprecation style.
1 parent cc87df9 commit 7301357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/auxiliary/report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def report_note(opts={})
169169
# @option opts [String] :user The username for the cred
170170
# @option opts [String] :pass The private part of the credential (e.g. password)
171171
def report_auth_info(opts={})
172-
print_error "*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!"
172+
print_warning "*** #{self.fullname} is still calling the deprecated report_auth_info method! This needs to be updated!"
173173
return if not db
174174
raise ArgumentError.new("Missing required option :host") if opts[:host].nil?
175175
raise ArgumentError.new("Missing required option :port") if (opts[:port].nil? and opts[:service].nil?)

0 commit comments

Comments
 (0)