improve error message for validatepercent

This commit is contained in:
zkldi
2021-05-20 19:24:32 +01:00
parent 7afdb47d56
commit 6e04dcf0e4
@@ -101,7 +101,7 @@ export function ValidatePercent(game: Game, percent: number, chart: AnyChartDocu
if (percent > gamePercentMax[game]) {
throw new InvalidScoreFailure(
`Invalid percent - expected less than ${gamePercentMax[game]}.`
`Invalid percent of ${percent} - expected a value less than ${gamePercentMax[game]}%.`
);
}
}