Skip to content

Commit b169e36

Browse files
authored
Merge pull request #258 from map-of-pi/address-pr-comment-14
Self approved.
2 parents e542d52 + d5f0dd2 commit b169e36

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/middlewares/isToggle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const isToggle = (toggleName: string) => async (
2020
} catch (error) {
2121
logger.error(`Failed to fetch toggle ${toggleName}:`, error);
2222
return res.status(500).json({
23-
message: `Failed to fetch toggle ${toggleName}; please try again later`
23+
message: 'Failed to determine feature state; please try again later'
2424
});
2525
}
2626
};

test/middlewares/isToggle.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("isToggle function", () => {
5757

5858
expect(res.status).toHaveBeenCalledWith(500);
5959
expect(res.json).toHaveBeenCalledWith({
60-
message: `Failed to fetch toggle ${ toggleName }; please try again later`,
60+
message: 'Failed to determine feature state; please try again later',
6161
});
6262
expect(next).not.toHaveBeenCalled();
6363

0 commit comments

Comments
 (0)