module Antidote
  class ReturnTypeError < StandardError
    def initialize(types)
      @actual_type, @expected_type, @method_name = types
    end

    def message
      "`#{@method_name}` expected to return #{@expected_type}, but returned " \
      "a #{@actual_type}"
    end
  end
end

module Antidote
  class ReturnTypeError < StandardError
    def initialize(types)
      @actual_type, @expected_type, @method_name = types
    end

    def message
      "Expected `#{@method_name}` to return a #{@expected_type}, but it " \
      "returned a #{@actual_type} instead"
    end
  end
end

Update error message on return type errors.
Update error message on return type errors.
