firmware: add UnwrapNoneError exception

This commit is contained in:
Sebastien Bourdeauducq 2022-03-26 15:27:49 +08:00
parent 457f3c72ce
commit a4c1f8a079
1 changed files with 2 additions and 1 deletions

View File

@ -344,7 +344,8 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 10] = [
("CacheError", 6), ("CacheError", 6),
("SPIError", 7), ("SPIError", 7),
("ZeroDivisionError", 8), ("ZeroDivisionError", 8),
("IndexError", 9) ("IndexError", 9),
("UnwrapNoneError", 10),
]; ];
pub fn get_exception_id(name: &str) -> u32 { pub fn get_exception_id(name: &str) -> u32 {