Skip to content

Commit 9f035a3

Browse files
🧹 chore: correct typos in backend error messages (#439)
1 parent 8bea896 commit 9f035a3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

packages/backend/src/common/errors/generic/generic.errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const GenericError: GenericErrors = {
2525
isOperational: true,
2626
},
2727
NotSure: {
28-
description: "Not sure why error occured. See logs",
28+
description: "Not sure why error occurred. See logs",
2929
status: Status.UNSURE,
3030
isOperational: true,
3131
},

packages/backend/src/common/errors/handlers/error.express.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const handleExpressError = async (
8080
const userId = await parseUserId(res, e);
8181
if (!userId) {
8282
logger.error(
83-
"Express error occured, but couldn't handle due to missing userId",
83+
"Express error occurred, but couldn't handle due to missing userId",
8484
);
8585
res.status(Status.BAD_REQUEST).send(UserError.MissingUserIdField);
8686
return;

packages/backend/src/common/errors/handlers/error.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ErrorHandler {
4848

4949
exitAfterProgrammerError(): void {
5050
logger.error(
51-
"Programmer error occured. Exiting to prevent app instability",
51+
"Programmer error occurred. Exiting to prevent app instability",
5252
);
5353
// uses 500 as code for the response error, but if the error is one of our own,
5454
// then a more accurate code will be given in the payload

packages/backend/src/sync/controllers/sync.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SyncController {
3232
const sync = await getSync({ resourceId });
3333
if (!sync || !sync.user) {
3434
logger.error(
35-
`Sync error occured, but couldnt find user based on this resourceId: ${resourceId}`,
35+
`Sync error occurred, but couldnt find user based on this resourceId: ${resourceId}`,
3636
);
3737
logger.debug(res);
3838
res.status(Status.BAD_REQUEST).send(UserError.MissingUserIdField);

packages/backend/src/sync/services/import/sync.import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class SyncImport {
266266
if (!response) {
267267
throw error(
268268
SyncError.NoEventChanges,
269-
"Import ignorede due to no response from gcal",
269+
"Import ignored due to no response from gcal",
270270
);
271271
}
272272

0 commit comments

Comments
 (0)