mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-20 12:03:11 -04:00
fix(api-server): return usable flash type to client (#50082)
This commit is contained in:
@@ -55,7 +55,7 @@ export default function prodErrorHandler() {
|
||||
|
||||
if (type === 'json') {
|
||||
return res.json({
|
||||
type: handled.type || 'errors',
|
||||
type: handled.type || 'danger',
|
||||
message
|
||||
});
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user