Skip to content

Commit d708de0

Browse files
David MaloneyDavid Maloney
authored andcommitted
return the lgoinscanner class name in an invalid exception
when a loginScanner throws an Invalid exception , the message will now include the classname of the Scanner that threw it.
1 parent 6decd3c commit d708de0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/metasploit/framework/login_scanner/invalid.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def initialize(model)
1313
@model = model
1414

1515
errors = @model.errors.full_messages.join(', ')
16+
errors << " (#{model.class.to_s})"
1617
super(errors)
1718
end
1819
end

0 commit comments

Comments
 (0)