Have assertError delegate to isError in @backstage/errors

Simplify the assertError implementation by delegating to isError
instead of duplicating the same validation checks.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-13 13:19:22 +02:00
parent 8055219d27
commit 608c1e5958
2 changed files with 7 additions and 11 deletions
@@ -0,0 +1,5 @@
---
'@backstage/errors': patch
---
Simplified `assertError` to delegate to `isError` instead of duplicating the same checks.