File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ pub enum SVDErrorKind {
26
26
ParseError ( Element ) ,
27
27
#[ fail( display = "NameMismatch" ) ]
28
28
NameMismatch ( Element ) ,
29
- #[ fail( display = "unknown access variant found" ) ]
30
- UnknownAccessType ( Element ) ,
29
+ #[ fail( display = "unknown access variant '{}' found" , _1 ) ]
30
+ UnknownAccessType ( Element , String ) ,
31
31
#[ fail( display = "Bit range invalid, {:?}" , _1) ]
32
32
InvalidBitRange ( Element , InvalidBitRange ) ,
33
33
#[ fail( display = "Unknown write constraint" ) ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl Parse for Access {
30
30
"read-writeOnce" => Ok ( Access :: ReadWriteOnce ) ,
31
31
"write-only" => Ok ( Access :: WriteOnly ) ,
32
32
"writeOnce" => Ok ( Access :: WriteOnce ) ,
33
- _ => Err ( SVDErrorKind :: UnknownAccessType ( tree. clone ( ) ) . into ( ) ) ,
33
+ _ => Err ( SVDErrorKind :: UnknownAccessType ( tree. clone ( ) , text ) . into ( ) ) ,
34
34
}
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments