From 866a83796a42cb9d7539e4ee6f63c909a901c8f1 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Mar 2022 15:27:49 +0800 Subject: [PATCH] firmware: add UnwrapNoneError exception --- artiq/firmware/ksupport/eh_artiq.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/ksupport/eh_artiq.rs b/artiq/firmware/ksupport/eh_artiq.rs index 30e173dc0..46403b72e 100644 --- a/artiq/firmware/ksupport/eh_artiq.rs +++ b/artiq/firmware/ksupport/eh_artiq.rs @@ -343,7 +343,8 @@ static EXCEPTION_ID_LOOKUP: [(&str, u32); 10] = [ ("CacheError", 6), ("SPIError", 7), ("ZeroDivisionError", 8), - ("IndexError", 9) + ("IndexError", 9), + ("UnwrapNoneError", 10), ]; pub fn get_exception_id(name: &str) -> u32 {