Solitaire: Say what value was passed as wrong instruction id
Change-Id: I4b79ba95ab5a43a197dfdd164b731d37b490a093
This commit is contained in:
parent
0a669111dd
commit
df5b86eded
|
@ -46,7 +46,7 @@ pub enum SolitaireError {
|
||||||
AlreadyInitialized(Pubkey),
|
AlreadyInitialized(Pubkey),
|
||||||
|
|
||||||
/// An instruction that wasn't recognised was sent.
|
/// An instruction that wasn't recognised was sent.
|
||||||
UnknownInstruction,
|
UnknownInstruction(u8),
|
||||||
|
|
||||||
Custom(u64),
|
Custom(u64),
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,8 +80,8 @@ macro_rules! solitaire {
|
||||||
},
|
},
|
||||||
)*
|
)*
|
||||||
|
|
||||||
_ => {
|
other => {
|
||||||
Err(SolitaireError::UnknownInstruction)
|
Err(SolitaireError::UnknownInstruction(other))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue