From 13b0e1554d538f41afcd73b3409f9d03377bb1c2 Mon Sep 17 00:00:00 2001 From: Dennis Korpel Date: Fri, 17 Jun 2022 14:43:52 +0200 Subject: [PATCH] rt/minfo.d: Replace Error with assert() --- src/rt/minfo.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/minfo.d b/src/rt/minfo.d index 0d5cd22b1a..a00d8a7918 100644 --- a/src/rt/minfo.d +++ b/src/rt/minfo.d @@ -109,7 +109,7 @@ struct ModuleGroup // release mode. if (distance[target] != curdist) { - throw new Error("internal error printing module cycle"); + assert(0, "internal error printing module cycle"); } // determine the path. This is tricky, because we have to @@ -196,7 +196,7 @@ struct ModuleGroup break; default: // invalid cycle handling option. - throw new Error("DRT invalid cycle handling option: " ~ cycleHandling); + assert(0, "DRT invalid cycle handling option: " ~ cycleHandling); } debug (printModuleDependencies)