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

Commit

Permalink
Merge pull request #2793 from WalterBright/runtimeError
Browse files Browse the repository at this point in the history
runtime.d: replace Error with assert()
  • Loading branch information
WalterBright authored Sep 13, 2019
2 parents d517120 + 2760b70 commit 3ead62a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/runtime.d
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ extern (C) UnitTestResult runModuleUnitTests()
results.summarize = !results.runMain;
break;
default:
throw new Error("Unknown --DRT-testmode option: " ~ rt_configOption("testmode", null, false));
assert(0, "Unknown --DRT-testmode option: " ~ rt_configOption("testmode", null, false));
}

return results;
Expand Down

0 comments on commit 3ead62a

Please sign in to comment.