Use valueError instead of assert

This commit is contained in:
benbierens 2023-07-03 13:20:24 +02:00
parent d70f8ee79c
commit 30ba4bd3d4
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA

View File

@ -38,7 +38,7 @@ proc loopDisarm*(loop: LoopMeasure, name: string) =
if loop.maxUs > 250_000:
error "LoopMeasure upper threshold breached"
raiseAssert "AAA"
raise newException(ValueError, "threshold breached")
proc startMeasure*(loop: LoopMeasure) =
loop.current = getMonoTime().ticks