Change the error handling message for read_file_meterpreter(), because this one is easier to understand
This commit is contained in:
parent
3f4dbd9df6
commit
ac582cd0fc
|
@ -168,7 +168,7 @@ protected
|
||||||
begin
|
begin
|
||||||
fd = session.fs.file.new(file_name, "rb")
|
fd = session.fs.file.new(file_name, "rb")
|
||||||
rescue ::Rex::Post::Meterpreter::RequestError => e
|
rescue ::Rex::Post::Meterpreter::RequestError => e
|
||||||
print_error("Failed to open file: #{e.class} : #{e}")
|
print_error("Failed to open file: #{file_name}")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue