Nit: print program error as hex (#9171)

This commit is contained in:
Jack May 2020-03-31 10:08:07 -07:00 committed by GitHub
parent 130c0b484d
commit 93be7370d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ pub enum InstructionError {
/// Allows on-chain programs to implement program-specific error types and see them returned /// Allows on-chain programs to implement program-specific error types and see them returned
/// by the Solana runtime. A program-specific error may be any type that is represented as /// by the Solana runtime. A program-specific error may be any type that is represented as
/// or serialized to a u32 integer. /// or serialized to a u32 integer.
#[error("program error: {0}")] #[error("program error: {0:#x}")]
CustomError(u32), CustomError(u32),
/// The return value from the program was invalid. Valid errors are either a defined builtin /// The return value from the program was invalid. Valid errors are either a defined builtin