Browse Source

add better error messages

Valentin Madrid 2 years ago
parent
commit
d0d6e9cc71
1 changed files with 3 additions and 3 deletions
  1. 3 3
      oracles/pyth/anchor/programs/pythexample/src/error.rs

+ 3 - 3
oracles/pyth/anchor/programs/pythexample/src/error.rs

@@ -2,10 +2,10 @@ use anchor_lang::prelude::*;
 
 #[error_code]
 pub enum ErrorCode {
-    #[msg("PythError")]
+    #[msg("Could not load price account")]
     PythError,
-    #[msg("TryToSerializePriceAccount")]
+    #[msg("Failed to serialize price account")]
     TryToSerializePriceAccount,
-    #[msg("InvalidArgument")]
+    #[msg("Invalid argument provided")]
     InvalidArgument,
 }