File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,11 @@ fn main() -> Result<()> {
174
174
. or_else ( || metadata. partition_table . as_deref ( ) )
175
175
{
176
176
let path = fs:: canonicalize ( path) . into_diagnostic ( ) ?;
177
- let data = fs:: read_to_string ( path) . into_diagnostic ( ) ?;
178
- let table = PartitionTable :: try_from_str ( data) ?;
177
+ let data = fs:: read_to_string ( path)
178
+ . into_diagnostic ( )
179
+ . wrap_err ( "Failed to open partition table" ) ?;
180
+ let table =
181
+ PartitionTable :: try_from_str ( data) . wrap_err ( "Failed to parse partition table" ) ?;
179
182
Some ( table)
180
183
} else {
181
184
None
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub enum Type {
26
26
impl Type {
27
27
pub fn subtype_hint ( & self ) -> String {
28
28
match self {
29
- Type :: App => "'factory', 'ota_0' trough 'ota_15' and 'test'" . into ( ) ,
29
+ Type :: App => "'factory', 'ota_0' through 'ota_15' and 'test'" . into ( ) ,
30
30
Type :: Data => {
31
31
let types = [
32
32
DataType :: Ota ,
You can’t perform that action at this time.
0 commit comments