Skip to content

Commit e8fd3cc

Browse files
committed
refactor: log error on failure
1 parent 77d420d commit e8fd3cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/update/update.use.paper.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const get = async (req: Request, res: Response) => {
99
let applyWithPaperFormHeading: string = "You'll need to file an update using the paper form";
1010
const isRemove: boolean = await isRemoveJourney(req);
1111

12-
if (isRemove){
12+
if (isRemove) {
1313
applyWithPaperFormHeading = "You'll need to submit this filing using the paper form";
1414
return res.render(config.USE_PAPER_PAGE, {
1515
journey: config.JourneyType.remove,

src/utils/secure.filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const getNextPageUrl = (appData: ApplicationData, fallbackUrl: string, isRemove:
117117
}
118118
return fallbackUrl;
119119
} catch (error) {
120-
throw new Error(`Error generating nextPageUrl with transactionId and submissionId: ${error}`);
120+
logger.error(`Error generating nextPageUrl with transactionId and submissionId: ${error}`);
121121
return fallbackUrl;
122122
}
123123
};

0 commit comments

Comments
 (0)