Skip to content

Commit

Permalink
try catch parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Nov 17, 2023
1 parent 71751a4 commit 38c0f7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/commands/src/shared/next-gen-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
}
2 changes: 1 addition & 1 deletion src/job/jobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 38c0f7d

Please sign in to comment.