Improve error message text
This commit is contained in:
parent
0316278b15
commit
ce50c88b87
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user