mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 06:48:04 +03:00
improve error message for validatepercent
This commit is contained in:
@@ -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]}%.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user