app-backend: clarify schema serialization troubleshooting steps

This commit is contained in:
Patrik Oldsberg
2021-02-19 12:57:49 +01:00
parent fe2a804742
commit 1c06cb3126
2 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-app-backend': patch
---
Clarify troubleshooting steps for schema serialization issues.
+3 -2
View File
@@ -95,8 +95,9 @@ export async function readConfigs(options: ReadOptions): Promise<AppConfig[]> {
appConfigs.push(...frontendConfigs);
} catch (error) {
throw new Error(
'Invalid schema embedded in the app bundle, to fix this issue you need ' +
`to correct the schema and then rebuild the app bundle. ${error}`,
'Invalid app bundle schema. If this error is unexpected you need to run `yarn build` in the app. ' +
`If that doesn't help you should make sure your config schema is correct and rebuild the app bundle again. ` +
`Caused by the following schema error, ${error}`,
);
}
}