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

View File

@ -115,7 +115,7 @@ pub enum InstructionError {
/// 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
/// or serialized to a u32 integer.
#[error("program error: {0}")]
#[error("program error: {0:#x}")]
CustomError(u32),
/// The return value from the program was invalid. Valid errors are either a defined builtin