Skip to content

Add location to UnknownFeatureError #82

@nobodywasishere

Description

@nobodywasishere

Can probably be solved via:

def [](lookup, location = nil) : T
  # ...

  if feature.nil?
    exception = UnknownFeatureError.new(self.name, lookup)

    if location
      exception.at(location)
    end

    raise exception
  end

  feature
end

private def parse_tag
  # ...
  tag = @env.tags[name_token.value, current_token]
  # ...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions