This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
@@ -368,7 +368,8 @@ struct ModuleGroup
368368
369369 string errmsg = " " ;
370370 buildCycleMessage(idx, midx, (string x) {errmsg ~= x;});
371- throw new Error(errmsg, __FILE__ , __LINE__ );
371+ assert (0 , errmsg);
372+
372373 case ignore:
373374 break ;
374375 case print:
You can’t perform that action at this time.
0 commit comments