slightly fix my bawlz
This commit is contained in:
@ -187,8 +187,9 @@ const deleteNotification = async (notification: Notification) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
console.error(`Could not delete notification ID: ${notification.id}`);
|
console.error(
|
||||||
console.error(response.statusText);
|
`Could not delete notification ID: ${notification.id}\nReason: ${response.status} - ${response.statusText}`
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
throw new Error(error.message);
|
throw new Error(error.message);
|
||||||
|
Reference in New Issue
Block a user