mirror of
https://github.com/zoriya/flood.git
synced 2026-06-06 12:02:13 +00:00
server: ajaxUtil: returns after error sent
This commit is contained in:
@@ -15,6 +15,7 @@ export const getResponseFn = (res: Response) => <D extends unknown>(data: D, err
|
||||
|
||||
if (typeof error === 'string') {
|
||||
res.status(500).json(Error(error));
|
||||
return;
|
||||
}
|
||||
|
||||
res.status(500).json(error);
|
||||
|
||||
Reference in New Issue
Block a user