From 93be7370d938fe50f4651b02d1fc731ae6afe317 Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 31 Mar 2020 10:08:07 -0700 Subject: [PATCH] Nit: print program error as hex (#9171) --- sdk/src/instruction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/instruction.rs b/sdk/src/instruction.rs index ef81c297ff..89e42be5cf 100644 --- a/sdk/src/instruction.rs +++ b/sdk/src/instruction.rs @@ -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