Skip to content

Commit

Permalink
Merge pull request #775 from snyk/fix/return-on-sec-to-primary-errors
Browse files Browse the repository at this point in the history
fix: [server only] stop secondary to primary fwd flow on err [HYB-512]
  • Loading branch information
aarlaud authored Jun 6, 2024
2 parents 354beb3 + 3d2c911 commit 62c9852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server/routesHandlers/httpRequestHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const overloadHttpRequestWithConnectionDetailsMiddleware = async (
return httpResponse.pipe(res);
} catch (err) {
logger.error({ err }, `Error in HTTP middleware: ${err}`);
res.status(500).send('Error forwarding request to primary');
return res.status(500).send('Error forwarding request to primary.');
}
} else {
logger.warn({ desensitizedToken }, 'no matching connection found');
Expand Down

0 comments on commit 62c9852

Please sign in to comment.