Skip to content

Commit 27ba8f0

Browse files
cyphercypher
authored andcommitted
check for nil msg in print_error
1 parent 082a894 commit 27ba8f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rex/ui/text/shell.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ def update_prompt(prompt = nil, new_prompt_char = nil, mode = false)
272272
#
273273
def print_error(msg='')
274274
return if (output.nil?)
275+
return if (msg.nil?)
275276

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

0 commit comments

Comments
 (0)