Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dashboards: Provide better error messages in SaveDashboardAsForm (#57866
) 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.
- Loading branch information
1 parent
a255c32
commit f07da85
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters