Instruction errors (runtime)

InvalidError

Appears as program returned invalid error code

Instruction

InvalidError

“program returned invalid error code”

The program returned an error value the runtime does not recognise.

Common causes

  • Returning a raw error number outside the custom range from a native program.

How to fix it

  • Return ProgramError::Custom(n) or a defined error.

Decode another error

Try: