forked from M-Labs/artiq-zynq
firmware: add UnwrapNoneError exception
This commit is contained in:
parent
a92561b9d3
commit
dcfaf587ec
|
@ -416,7 +416,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 {
|
||||||
|
|
Loading…
Reference in New Issue