From dcfaf587ec3e177d68a22c15fa257dbca4c003f9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Mar 2022 15:29:40 +0800 Subject: [PATCH] firmware: add UnwrapNoneError exception --- src/runtime/src/eh_artiq.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/src/eh_artiq.rs b/src/runtime/src/eh_artiq.rs index e7a8282..ba59a04 100644 --- a/src/runtime/src/eh_artiq.rs +++ b/src/runtime/src/eh_artiq.rs @@ -416,7 +416,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 {