From ce50c88b873c66feea80a4cd72389c3f04da00df Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 28 Oct 2023 16:16:39 +0100 Subject: [PATCH] Improve error message text --- project/src/helpers/WeightedRandomHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/WeightedRandomHelper.ts b/project/src/helpers/WeightedRandomHelper.ts index 5ce0acb8..17d639d0 100644 --- a/project/src/helpers/WeightedRandomHelper.ts +++ b/project/src/helpers/WeightedRandomHelper.ts @@ -45,7 +45,7 @@ export class WeightedRandomHelper { if (items.length !== weights.length) { - throw new Error("Items and weights must be of the same size"); + throw new Error("Items and weight inputs must be of the same length"); } if (!items.length)