message: app-backend: re-throw config loading errors with instructions for how to fix
diff: @@ -84,6 +84,8 @@ export async function readConfigs(options: ReadOptions): Promise<AppConfig[]> {
  const schemaPath = resolvePath(appDistDir, '.config-schema.json');
  if (await fs.pathExists(schemaPath)) {
  const serializedSchema = await fs.readJson(schemaPath);
  +
  + try {
  const schema = await loadConfigSchema({ serialized: serializedSchema });
  const frontendConfigs = await schema.process(
  @@ -91,6 +93,12 @@ export async function readConfigs(options: ReadOptions): Promise<AppConfig[]> {
  { visibility: ['frontend'] },
  );
  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}`,
  + );
  + }
  }
  return appConfigs;
  