updating the error message

changing the exception to be a little more specific.
bug/bundler_fix
darkbushido 2016-05-23 15:40:32 -05:00
parent d3cdcd5f99
commit 5e059e0c5b
No known key found for this signature in database
GPG Key ID: 3922EB70FB80E8DD
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module Msf
class EncoderSpaceViolation < PayloadGeneratorError
end
class SpaceViolation < PayloadGeneratorError
class PayloadSpaceViolation < PayloadGeneratorError
end
class IncompatibleArch < PayloadGeneratorError
@ -333,7 +333,7 @@ module Msf
gen_payload = format_payload(encoded_payload)
end
if gen_payload.length > @space and not @smallest
raise SpaceViolation, 'The payload exceeds the allocated space'
raise PayloadSpaceViolation, 'The payload exceeds the specified space'
else
gen_payload
end