Skip to content

Commit d0d6e9c

Browse files
add better error messages
1 parent 103c60e commit d0d6e9c

File tree

1 file changed

+3
-3
lines changed
  • oracles/pyth/anchor/programs/pythexample/src

1 file changed

+3
-3
lines changed

oracles/pyth/anchor/programs/pythexample/src/error.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ use anchor_lang::prelude::*;
22

33
#[error_code]
44
pub enum ErrorCode {
5-
#[msg("PythError")]
5+
#[msg("Could not load price account")]
66
PythError,
7-
#[msg("TryToSerializePriceAccount")]
7+
#[msg("Failed to serialize price account")]
88
TryToSerializePriceAccount,
9-
#[msg("InvalidArgument")]
9+
#[msg("Invalid argument provided")]
1010
InvalidArgument,
1111
}

0 commit comments

Comments
 (0)