Skip to content

Commit 55b6a10

Browse files
authored
Merge pull request dlang#3847 from dkorpel/error-to-assert
rt/minfo.d: Replace Error with assert()
2 parents df3fbf3 + 13b0e15 commit 55b6a10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/minfo.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct ModuleGroup
109109
// release mode.
110110
if (distance[target] != curdist)
111111
{
112-
throw new Error("internal error printing module cycle");
112+
assert(0, "internal error printing module cycle");
113113
}
114114

115115
// determine the path. This is tricky, because we have to
@@ -196,7 +196,7 @@ struct ModuleGroup
196196
break;
197197
default:
198198
// invalid cycle handling option.
199-
throw new Error("DRT invalid cycle handling option: " ~ cycleHandling);
199+
assert(0, "DRT invalid cycle handling option: " ~ cycleHandling);
200200
}
201201

202202
debug (printModuleDependencies)

0 commit comments

Comments
 (0)