diff --git a/lib/ronin/exploits/mixins/has_payload.rb b/lib/ronin/exploits/mixins/has_payload.rb index 93280661..633c2f3c 100644 --- a/lib/ronin/exploits/mixins/has_payload.rb +++ b/lib/ronin/exploits/mixins/has_payload.rb @@ -111,6 +111,9 @@ def initialize(payload: nil, **kwargs) # @return [Ronin::Payloads::Payload, String, nil] # The new payload of the exploit. # + # @raise [IncompatiblePayload] + # An incompatible payload object was given to the exploit. + # def payload=(new_payload) if new_payload.kind_of?(Payloads::Payload) unless new_payload.kind_of?(self.class.payload_class)