Skip to content

Commit

Permalink
fix(api-server): return usable flash type to client (freeCodeCamp#50082)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunSHamilton authored Apr 17, 2023
1 parent 16f0c4b commit 8300ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-server/src/server/middlewares/error-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function prodErrorHandler() {

if (type === 'json') {
return res.json({
type: handled.type || 'errors',
type: handled.type || 'danger',
message
});
} else {
Expand Down

0 comments on commit 8300ccb

Please sign in to comment.