Skip to content

Commit 7b48f24

Browse files
committed
fix typo
1 parent e4e200d commit 7b48f24

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

cargo-espflash/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ fn main() -> Result<()> {
174174
.or_else(|| metadata.partition_table.as_deref())
175175
{
176176
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")?;
179182
Some(table)
180183
} else {
181184
None

espflash/src/partition_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub enum Type {
2626
impl Type {
2727
pub fn subtype_hint(&self) -> String {
2828
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(),
3030
Type::Data => {
3131
let types = [
3232
DataType::Ota,

0 commit comments

Comments
 (0)