mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
handle rejection
This commit is contained in:
@@ -158,6 +158,7 @@ export async function processQueue(id: string) {
|
||||
} catch (error) {
|
||||
// SOMETHING WENT WRONG, LOG AND RESPOND WITH ERROR
|
||||
rest.eventHandlers.fetchFailed(queuedRequest.payload, error);
|
||||
queuedRequest.request.reject(error);
|
||||
queuedRequest.request.respond({
|
||||
status: 404,
|
||||
body: JSON.stringify({ error }),
|
||||
|
||||
Reference in New Issue
Block a user