Skip to content
Skip to Content

E3020

Error code: the run stops before anything is written. Raised by: ownership and reads.

Cause

<plugin> reads <item> in <key>, a private item of <owner>. Another plugin's state is reachable only through contract views and kernel columns.

Fix

Read a view of the contract that <owner> provides instead of <item>; if no view exposes it, add one to that contract.

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[E3020]
error[E3020]: <plugin> reads <item> in <key>, a private item of <owner>. Another plugin's state is reachable only through contract views and kernel columns.
  --> <file>:<line>:<column>
  = fix: Read a view of the contract that <owner> provides instead of <item>; if no view exposes it, add one to that contract.

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

Values filled in

plugin, item, key, owner.

Generated from schemas/messages/en.toml. Do not edit. This page (code E3020) is built from the engine sources at every documentation build. To change it, edit the E3020 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.