Files
backstage/plugins/scaffolder-backend-module-github
Patrik Oldsberg b2319ffe45 errors: add toError utility and migrate assertError usages
Add a `toError` utility function to `@backstage/errors` that converts
unknown values to `ErrorLike` objects. If the value is already error-like
it is returned as-is. Strings are used directly as the error message, and
other values are stringified with a fallback to JSON.stringify to avoid
unhelpful `[object Object]` messages.

Non-error causes passed to `CustomErrorBase` are now converted and stored
using `toError` rather than discarded. Existing `assertError` call sites
across the codebase are migrated to `toError`.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
2026-04-03 10:16:23 +02:00
..
2026-03-31 15:30:51 +00:00
2026-03-31 15:30:51 +00:00

@backstage/plugin-scaffolder-backend-module-github

The github module for @backstage/plugin-scaffolder-backend.

This plugin was created through the Backstage CLI