From 8a156abdb4e1a3ac546d62832495faf20812df3b Mon Sep 17 00:00:00 2001 From: gwillcox-r7 Date: Mon, 3 Aug 2020 17:14:24 -0500 Subject: [PATCH] Fix up ExploitError module inside exceptions.rb to properly propagate errors to the end user --- lib/msf/core/exceptions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/core/exceptions.rb b/lib/msf/core/exceptions.rb index 62add781e2..38725a85a2 100644 --- a/lib/msf/core/exceptions.rb +++ b/lib/msf/core/exceptions.rb @@ -152,8 +152,8 @@ end module ExploitError include Exception - def to_s - "An exploitation error occurred." + def initialize(msg="An exploitation error occurred.") + super(msg) end end