From 30ba4bd3d482c304ce90ad0d45410b2559129e17 Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 3 Jul 2023 13:20:24 +0200 Subject: [PATCH] Use valueError instead of assert --- codex/loopmeasure.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex/loopmeasure.nim b/codex/loopmeasure.nim index c430e815..850a1b7d 100644 --- a/codex/loopmeasure.nim +++ b/codex/loopmeasure.nim @@ -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