Skip to main content

Module error

Module error 

Source
Expand description

Content errors: every problem names the file and, when known, the line and column, so a broken asset can be fixed without reading Rust. An error of a class the tools know carries its problem Code (codes), which shuyi explain prints the page of.

Modules§

codes
The content codes (SH2nnn): a file of a game’s content has a problem. Each has a row and a page in shuyi_cli::contract::codes.

Structs§

Code
A problem code: SH and four digits, never reused or renumbered (ADR-0028). The content codes are in codes; the tools’ own are in shuyi_cli::contract::codes.
ContentError
One problem found while loading or validating an asset. Build it with ContentError::new and its methods (ADR-0039).
ContentErrors
Every problem found in one load, reported together.

Functions§

line_of
1-based line of the first line containing needle.