fix(api-server): return usable flash type to client (#50082)
parent
16f0c4b7cc
commit
8300ccb7f0
|
@ -55,7 +55,7 @@ export default function prodErrorHandler() {
|
|||
|
||||
if (type === 'json') {
|
||||
return res.json({
|
||||
type: handled.type || 'errors',
|
||||
type: handled.type || 'danger',
|
||||
message
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue