diff --git a/svd-parser/src/expand.rs b/svd-parser/src/expand.rs index 1f400c0..e8acc7a 100644 --- a/svd-parser/src/expand.rs +++ b/svd-parser/src/expand.rs @@ -128,7 +128,12 @@ impl FieldPath { let name = v.pop().unwrap(); let register = if !v.is_empty() { let (block, rname) = RegisterPath::parse_vec(v); - Some(RegisterPath::new(block.unwrap(), rname)) + Some(RegisterPath::new( + block.expect(&format!( + "Full qualifying field path is expected. Passed: {v:?}" + )), + rname, + )) } else { None };