Error Handling
Last updated
Last updated
In the event of encountering an error when interaction with the contract Sui wallets tend to send opaque error messages to the user.
Sage contracts have specific error codes defined to help mitigate debugging issues and more specific error information can be found here. Generally speaking, Sage-specific error codes always begin with "37" (e.g. 370, 371, etc).
Note that the same error code (e.g. "370") interacting with one module (e.g. "channel") may not correspond to the same error for another module (e.g. "post:).
Each wallet is different, and not all of them appear to send details on this to the user. Here are some examples when attempting to create a new Channel with an invalid name:
No error codes shown.
The error occurs in the "channel" module with error code "370".
No error codes shown.