diff --git a/src/commands/src/shared/next-gen-parse.ts b/src/commands/src/shared/next-gen-parse.ts index 5e1ac292c..eb2c17c50 100644 --- a/src/commands/src/shared/next-gen-parse.ts +++ b/src/commands/src/shared/next-gen-parse.ts @@ -28,5 +28,9 @@ export async function nextGenParse({ job, preppedLogger }: NextGenParseParams): preppedLogger(`COMMAND for parse: ${commandArgs.join(' ')}`); - return executeCliCommand({ command: 'snooty', args: commandArgs }); + try { + await executeCliCommand({ command: 'snooty', args: commandArgs }); + } catch (error) { + preppedLogger(`ERROR: ${error}\n\n`); + } } diff --git a/src/job/jobHandler.ts b/src/job/jobHandler.ts index f0284e690..2a8acafda 100644 --- a/src/job/jobHandler.ts +++ b/src/job/jobHandler.ts @@ -303,7 +303,7 @@ export abstract class JobHandler { [K: string]: ({ job, preppedLogger }: { job: Job; preppedLogger: (message: string) => void }) => any; } = { // ['get-build-dependencies']: 'buildDepsExe', - // ['next-gen-parse']: nextGenParse, + ['next-gen-parse']: nextGenParse, ['persistence-module']: persistenceModule, // ['next-gen-html']: 'htmlExe', ['oas-page-build']: oasPageBuild,