Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
updated code
  • Loading branch information
umeshmore45 committed May 16, 2024
commit 52d88667da1d2056e35b4473be1b782afe395a4c
2 changes: 0 additions & 2 deletions api/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const throwError = (message: string, statusCode: number) => {
throw Object.assign(new Error(message), { statusCode });
};
Expand Down Expand Up @@ -26,4 +25,3 @@ export const getLogMessage = (
...(error && { error }),
};
};