mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
The existing code uses `instanceof Error` to check for a `message` field on the thrown object. The objects that are thrown are never instances of the error interface. This change introduces a new type that extends Error so that the check works properly and displays a meaningful error message in the UI.