Skip to content

Expose warnings #1192

Open
Open
@tophtucker

Description

@tophtucker

Currently, ⚠️ warnings are just sent to console.warn. It'd be great if they were also exposed programmatically, so other code (like Observable itself) can consume them.

Possible approaches:

  • as a property on the DOM node, like plot.scales
  • as an onWarn callback
  • …? add your own!

It'd be great if the warning came with information about where it originated, as if we could place an error caret at the spot in the configuration object where you should look: somewhere in the nth mark, in the x scale, etc.

Related links (mostly a note to self):

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions