diff --git a/token/program/src/error.rs b/token/program/src/error.rs index e56fde6b..32cd9d20 100644 --- a/token/program/src/error.rs +++ b/token/program/src/error.rs @@ -34,6 +34,9 @@ pub enum TokenError { /// Invalid number of required signers. #[error("Invalid number of required signers")] InvalidNumberOfRequiredSigners, + /// State is uninitialized. + #[error("State is unititialized")] + UninitializedState, /// Instruction does not support native tokens #[error("Instruction does not support native tokens")] NativeNotSupported, diff --git a/token/program/src/processor.rs b/token/program/src/processor.rs index dcc7c7de..baa1e331 100644 --- a/token/program/src/processor.rs +++ b/token/program/src/processor.rs @@ -758,6 +758,7 @@ impl PrintProgramError for TokenError { TokenError::InvalidNumberOfRequiredSigners => { info!("Error: Invalid number of required signers") } + TokenError::UninitializedState => info!("Error: State is uninitialized"), TokenError::NativeNotSupported => { info!("Error: Instruction does not support native tokens") }