Skip to content

Commit

Permalink
switch puts to print_error in proc
Browse files Browse the repository at this point in the history
  • Loading branch information
zgoldman-r7 committed Oct 17, 2023
1 parent 888ee07 commit cd0ccd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/msf/ui/console/command_dispatcher/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ def log_on_timeout_error(message)
proc do |e|
next unless e.is_a?(Rex::TimeoutError)
elog(e)
puts message
print_error(message)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/rex/ui/text/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def load_resource(path)
end

# Process ERB directives first
puts "Processing #{path} for ERB directives."
print_status "Processing #{path} for ERB directives."
erb = ERB.new(resource_file)
processed_resource = erb.result(binding)

Expand Down Expand Up @@ -55,7 +55,7 @@ def load_resource(path)
buff << line
end
if ! buff.empty?
puts "resource (#{path})> Ruby Code (#{buff.length} bytes)"
print_status("resource (#{path})> Ruby Code (#{buff.length} bytes)")
begin
eval(buff, bin)
rescue ::Interrupt
Expand Down

0 comments on commit cd0ccd1

Please sign in to comment.