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.
|
/// Invalid number of required signers.
|
||||||
#[error("Invalid number of required signers")]
|
#[error("Invalid number of required signers")]
|
||||||
InvalidNumberOfRequiredSigners,
|
InvalidNumberOfRequiredSigners,
|
||||||
|
/// State is uninitialized.
|
||||||
|
#[error("State is unititialized")]
|
||||||
|
UninitializedState,
|
||||||
/// Instruction does not support native tokens
|
/// Instruction does not support native tokens
|
||||||
#[error("Instruction does not support native tokens")]
|
#[error("Instruction does not support native tokens")]
|
||||||
NativeNotSupported,
|
NativeNotSupported,
|
||||||
|
|
|
@ -758,6 +758,7 @@ impl PrintProgramError for TokenError {
|
||||||
TokenError::InvalidNumberOfRequiredSigners => {
|
TokenError::InvalidNumberOfRequiredSigners => {
|
||||||
info!("Error: Invalid number of required signers")
|
info!("Error: Invalid number of required signers")
|
||||||
}
|
}
|
||||||
|
TokenError::UninitializedState => info!("Error: State is uninitialized"),
|
||||||
TokenError::NativeNotSupported => {
|
TokenError::NativeNotSupported => {
|
||||||
info!("Error: Instruction does not support native tokens")
|
info!("Error: Instruction does not support native tokens")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue