Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 3ead62a

Browse files
authored
Merge pull request #2793 from WalterBright/runtimeError
runtime.d: replace Error with assert()
2 parents d517120 + 2760b70 commit 3ead62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/runtime.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ extern (C) UnitTestResult runModuleUnitTests()
680680
results.summarize = !results.runMain;
681681
break;
682682
default:
683-
throw new Error("Unknown --DRT-testmode option: " ~ rt_configOption("testmode", null, false));
683+
assert(0, "Unknown --DRT-testmode option: " ~ rt_configOption("testmode", null, false));
684684
}
685685

686686
return results;

0 commit comments

Comments
 (0)