Improve error message text

This commit is contained in:
Dev 2023-10-28 16:16:39 +01:00
parent 0316278b15
commit ce50c88b87

View File

@ -45,7 +45,7 @@ export class WeightedRandomHelper
{ {
if (items.length !== weights.length) 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) if (!items.length)