Skip to content

Commit 6070ca0

Browse files
committed
readd intentionally redundant arm
1 parent a359358 commit 6070ca0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sysvar/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ pub unsafe fn get_sysvar_unchecked(
289289
match result {
290290
solana_program_entrypoint::SUCCESS => Ok(()),
291291
OFFSET_LENGTH_EXCEEDS_SYSVAR => Err(solana_program_error::ProgramError::InvalidArgument),
292+
SYSVAR_NOT_FOUND => Err(solana_program_error::ProgramError::UnsupportedSysvar),
293+
// Unexpected errors are folded into `UnsupportedSysvar`.
292294
_ => Err(solana_program_error::ProgramError::UnsupportedSysvar),
293295
}
294296
}

0 commit comments

Comments
 (0)