Skip to main content
SIFR-RESULT-0002 belongs to the Result and typed errors diagnostic family. It means: invalid Result error type.

Why It Happens

A typed failure path is being ignored or described with an invalid error type. Handle the Result, propagate it, or use a valid error type.
Use sifr --explain SIFR-RESULT-0002 locally to see the renderer’s exact message template and any machine-applicable suggestions for the compiler version you are running.

Erroneous Code

How To Fix It

Handle typed failures explicitly. Use try/except, return the Result, or otherwise consume the value so failures cannot be ignored.

Fixed Code

Details

See the Error Codes index for the complete catalog.