Skip to content

Commit 08b093c

Browse files
committed
Make model fail
1 parent 7da9999 commit 08b093c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/class/src/runner.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ export function runClass(config: Config, freq = 600): ClassOutput {
4141
// Initial time
4242
writeOutput();
4343

44+
// TODO remove when we see this error rendered
45+
if (config.runtime === 42_000) {
46+
throw new Error("Runtime cannot be 42_000 seconds.");
47+
}
48+
4449
// Update loop
4550
while (model.t <= config.runtime) {
4651
model.update();

0 commit comments

Comments
 (0)