Introduce the @backstage/errors package.
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors. Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
"@backstage/cli": "*",
|
||||
"@backstage/config": "*",
|
||||
"@backstage/core": "*",
|
||||
"@backstage/errors": "*",
|
||||
"@backstage/plugin-api-docs": "*",
|
||||
"@backstage/plugin-app-backend": "*",
|
||||
"@backstage/plugin-auth-backend": "*",
|
||||
|
||||
@@ -36,6 +36,7 @@ import { version as catalogModel } from '../../../catalog-model/package.json';
|
||||
import { version as cli } from '../../../cli/package.json';
|
||||
import { version as config } from '../../../config/package.json';
|
||||
import { version as core } from '../../../core/package.json';
|
||||
import { version as errors } from '../../../errors/package.json';
|
||||
import { version as testUtils } from '../../../test-utils/package.json';
|
||||
import { version as theme } from '../../../theme/package.json';
|
||||
|
||||
@@ -67,6 +68,7 @@ export const packageVersions = {
|
||||
'@backstage/cli': cli,
|
||||
'@backstage/config': config,
|
||||
'@backstage/core': core,
|
||||
'@backstage/errors': errors,
|
||||
'@backstage/plugin-api-docs': pluginApiDocs,
|
||||
'@backstage/plugin-app-backend': pluginAppBackend,
|
||||
'@backstage/plugin-auth-backend': pluginAuthBackend,
|
||||
|
||||
Reference in New Issue
Block a user