mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Updated error message.
This commit is contained in:
parent
4e9d661d82
commit
b77657faa6
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
const { type, payload } = getJsonBody<CollectRequestBody>(req);
|
||||
|
||||
if (type !== 'event') {
|
||||
return badRequest(res);
|
||||
return badRequest(res, 'Wrong payload type.');
|
||||
}
|
||||
|
||||
const { url, referrer, name: eventName, data: eventData, title: pageTitle } = payload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue