Skip to content

Commit

Permalink
Add a diagnostic to tell the user about the partition table format wh…
Browse files Browse the repository at this point in the history
…en the image doesn't fit (#397)
  • Loading branch information
MabezDev committed May 4, 2023
1 parent b50f90a commit 6d52193
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions espflash/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ pub enum Error {
#[error(
"Supplied ELF image of {0}B is too big, and doesn't fit configured app partition of {1}B"
)]
#[diagnostic(
code(espflash::image_too_big),
help("Reduce the size of the binary or increase the size of the partition."),
url("https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/partition-tables.html#built-in-partition-tables")
)]
ElfTooBig(u32, u32),

#[error("Failed to connect to on-device flash")]
Expand Down

0 comments on commit 6d52193

Please sign in to comment.