retain v2 error values
This commit is contained in:
parent
08841b801e
commit
15aa02760a
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue