Skip to content

Commit 5e059e0

Browse files
committed
updating the error message
changing the exception to be a little more specific.
1 parent d3cdcd5 commit 5e059e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/msf/core/payload_generator.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PayloadGeneratorError < StandardError
99
class EncoderSpaceViolation < PayloadGeneratorError
1010
end
1111

12-
class SpaceViolation < PayloadGeneratorError
12+
class PayloadSpaceViolation < PayloadGeneratorError
1313
end
1414

1515
class IncompatibleArch < PayloadGeneratorError
@@ -333,7 +333,7 @@ def generate_payload
333333
gen_payload = format_payload(encoded_payload)
334334
end
335335
if gen_payload.length > @space and not @smallest
336-
raise SpaceViolation, 'The payload exceeds the allocated space'
336+
raise PayloadSpaceViolation, 'The payload exceeds the specified space'
337337
else
338338
gen_payload
339339
end

0 commit comments

Comments
 (0)