Skip to content

Commit

Permalink
check for nil msg in print_error
Browse files Browse the repository at this point in the history
  • Loading branch information
cypher authored and cypher committed Dec 15, 2016
1 parent 082a894 commit 27ba8f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rex/ui/text/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def update_prompt(prompt = nil, new_prompt_char = nil, mode = false)
#
def print_error(msg='')
return if (output.nil?)
return if (msg.nil?)

self.on_print_proc.call(msg) if self.on_print_proc
# Errors are not subject to disabled output
Expand Down

0 comments on commit 27ba8f0

Please sign in to comment.