From e8026788ec96630a2fbc1d828b04c2b24fcf0f22 Mon Sep 17 00:00:00 2001 From: EthanThatOneKid <31261035+EthanThatOneKid@users.noreply.github.com> Date: Sat, 14 Oct 2023 16:16:39 -0700 Subject: [PATCH] Update denokv_leaderboard_client.ts --- lib/leaderboard/denokv/denokv_leaderboard_client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/leaderboard/denokv/denokv_leaderboard_client.ts b/lib/leaderboard/denokv/denokv_leaderboard_client.ts index bdbf931..8fb8e5b 100644 --- a/lib/leaderboard/denokv/denokv_leaderboard_client.ts +++ b/lib/leaderboard/denokv/denokv_leaderboard_client.ts @@ -85,7 +85,7 @@ export class DenoKvLeaderboardClient implements LeaderboardClient { season, ).commit(); if (!updateSeasonResult.ok) { - throw new Error("Failed to update season"); + throw updateSeasonResult; } // Update the current season ID. @@ -94,7 +94,7 @@ export class DenoKvLeaderboardClient implements LeaderboardClient { season.id, ); if (!updateSeasonIDResult.ok) { - throw new Error("Failed to update season ID"); + throw updateSeasonIDResult; } return;