Skip to content

Commit

Permalink
Add instantiation error to CheckCode
Browse files Browse the repository at this point in the history
It's better here, now that it's supported.

Co-Authored-By: acammack-r7 <adam_cammack@rapid7.com>
  • Loading branch information
wvu-r7 and acammack-r7 authored Dec 16, 2019
1 parent 7c071d2 commit f23ec6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/exploit/check_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def check

# Bail if we couldn't
unless mod
return CheckCode::Unsupported
return CheckCode::Unsupported("Could not instantiate #{check_module}")
end

# Bail if run_host/run isn't defined
Expand Down

0 comments on commit f23ec6b

Please sign in to comment.