Skip to content

Commit

Permalink
fixed snyk - Information Exposure
Browse files Browse the repository at this point in the history
  • Loading branch information
santoshshinde2012 committed Jan 11, 2024
1 parent b0ca3d0 commit 132cd6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/error-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const addErrorHandler = (
\nREQUEST PARAMS:\n${util.inspect(req.params)}
\nREQUEST QUERY:\n${util.inspect(req.query)}
\nBODY:\n${util.inspect(req.body)}`);
let body: IError | String = {
let body: IError | string = {
fields: err.fields,
message: err.message || 'An error occurred during the request.',
name: err.name,
Expand Down

0 comments on commit 132cd6a

Please sign in to comment.