Don't send ERR_TOURNAMENT_NOT_FOUND to discord hook

This commit is contained in:
Timothy Armes
2024-10-20 12:32:46 +02:00
parent 04ea29a57c
commit b4e1b6d24c
+7 -1
View File
@@ -155,9 +155,15 @@ export const fetchTournamentResults = actionClient
})), })),
})), })),
); );
} catch (error) { } catch (error: any) {
if (
!("message" in error) ||
error.message !== "ERR_TOURNAMENT_NOT_FOUND"
) {
reportFetchError(id, error); reportFetchError(id, error);
errorLog(JSON.stringify(error, null, 2)); errorLog(JSON.stringify(error, null, 2));
}
throw error; throw error;
} }
}); });