mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
@@ -99,8 +99,8 @@ const errorHandler: ErrorRequestHandler = (err, req, res, _next) => {
|
||||
accountability: req.accountability ?? null,
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
return res.json(payload);
|
||||
.then((updatedErrors) => {
|
||||
return res.json({ ...payload, errors: updatedErrors });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user