Skip to content

Ensure we always emit "error" events instead of throwing errors #3208

Closed

Description

@jfirebaugh

If queryRenderedFeatures is passed an invalid filter, it throws. If it's passed an invalid layer ID (one that doesn't exist in the style), it emits an error event.

Is there a reason these two errors are reported differently or can we use a consistent error reporting mechanism?

cc @mollymerp @lucaswoj

Activity

  1. lucaswoj commented on Sep 16, 2016

    @lucaswoj
    Contributor

    We have decided to always emit, not throw, errors.

  2. changed the title [-]Make error handling for queryRenderedFeatures consistent[/-] [+]Ensure we always emit "error" events instead of throwing errors[/+] on Sep 16, 2016
  3. lucaswoj commented on Sep 16, 2016

    @lucaswoj
    Contributor
  4. self-assigned this
    on Sep 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions