Skip to content

Commit 4055fd1

Browse files
committed
Do e.message instead of e.to_s
1 parent d59b6d9 commit 4055fd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/exploit/http/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def send_request_raw(opts={}, timeout = 20)
347347
print_line(e.message) if datastore['HttpTrace']
348348
nil
349349
rescue ::Exception => e
350-
print_line(e) if datastore['HttpTrace']
350+
print_line(e.message) if datastore['HttpTrace']
351351
raise e
352352
end
353353
end
@@ -392,7 +392,7 @@ def send_request_cgi(opts={}, timeout = 20)
392392
print_line(e.message) if datastore['HttpTrace']
393393
nil
394394
rescue ::Exception => e
395-
print_line(e) if datastore['HttpTrace']
395+
print_line(e.message) if datastore['HttpTrace']
396396
raise e
397397
end
398398
end

0 commit comments

Comments
 (0)