Skip to content
Skip to Content

E5040

Error code: the run stops before anything is written. Raised by: {problem} is a text of [modulation.fault].

Cause

Modulator <modulator> stopped the run at modulation point <point> on day <day>: <problem>.

Fix

If the value overflowed, lower the factors combined on <point>: every factor must be finite and at least 0, and the product of the factors active together must stay finite. If a table has no cell, bind a rate.factor table whose rows sit at a territorial level every unit an agent can reach has as itself or an ancestor.

What the engine prints

The message names the code, then where the problem is when it has a place in a file, then the fix. Words in angle brackets are filled in with the names and values of your file.

error[E5040]
error[E5040]: Modulator <modulator> stopped the run at modulation point <point> on day <day>: <problem>.
  --> <file>:<line>:<column>
  = fix: If the value overflowed, lower the factors combined on <point>: every factor must be finite and at least 0, and the product of the factors active together must stay finite. If a table has no cell, bind a rate.factor table whose rows sit at a territorial level every unit an agent can reach has as itself or an ancestor.

With --json, the same diagnostic is one JSON object with the fields code, severity, file, line, column, rule, fix and args.

Values filled in

modulator, point, day, problem.

Generated from schemas/messages/en.toml. Do not edit. This page (code E5040) is built from the engine sources at every documentation build. To change it, edit the E5040 rule and fix in the English message catalogue (crates/cohortix-schema/messages/en.toml, published as schemas/messages/en.toml) and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.