Add missing ProgramError to InstructionError mappings (#16231)

* Add missing ProgramError to InstructionError mappings

* add note

* Clarify process of adding new program error
This commit is contained in:
Jack May
2021-06-03 14:59:04 -07:00
committed by GitHub
parent 708bbcb001
commit 83b9a046d1
4 changed files with 64 additions and 38 deletions

View File

@ -215,6 +215,8 @@ pub enum InstructionError {
/// Unsupported sysvar
#[error("Unsupported sysvar")]
UnsupportedSysvar,
// Note: For any new error added here an equivilent ProgramError and it's
// conversions must also be added
}
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]