message: capture loader errors
diff: @@ -12,6 +12,7 @@ export const generateConfigFromTableSchema = async (
  await streamLogger.info("getting schema...");
  const schemaDoc = await db.doc(schemaDocPath).get();
  const schemaData = schemaDoc.data();
  + try {
  if (!schemaData) throw new Error("no schema found");
  // Temporarily disabled because this is super long
  @@ -99,7 +100,11 @@ export const generateConfigFromTableSchema = async (
  `documentSelectColumns: ${JSON.stringify(documentSelectColumns)}`
  );
  - const sparksConfig = parseSparksConfig(schemaData.sparks, user, streamLogger);
  + const sparksConfig = parseSparksConfig(
  + schemaData.sparks,
  + user,
  + streamLogger
  + );
  await streamLogger.info(`sparksConfig: ${JSON.stringify(sparksConfig)}`);
  const collectionType = schemaDocPath.includes("subTables")
  @@ -152,7 +157,9 @@ export const generateConfigFromTableSchema = async (
  default:
  break;
  }
  - await streamLogger.info(`collectionType: ${JSON.stringify(collectionType)}`);
  + await streamLogger.info(
  + `collectionType: ${JSON.stringify(collectionType)}`
  + );
  // generate field types from table meta data
  const fieldTypes = JSON.stringify(
  @@ -193,4 +200,8 @@ export const generateConfigFromTableSchema = async (
  );
  return true;
  + } catch (error) {
  + streamLogger.error(error.message);
  + return false;
  + }
  };
  