Skip to content

Commit e7f3b8e

Browse files
committed
Un-annoy
1 parent a36eec8 commit e7f3b8e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

espflash/src/error.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ pub enum Error {
319319
#[error("Invalid `address`({address}) and/or `size`({size}) argument(s)")]
320320
#[diagnostic(
321321
code(espflash::erase_region::invalid_argument),
322-
help("`address` and `size` must be multiples of 0x1000 (4096)")
322+
help("`address` ({address}) and `size` ({size}) must be multiples of 0x1000 (4096)")
323323
)]
324324
InvalidEraseRegionArgument {
325325
/// Address argument
@@ -332,7 +332,9 @@ pub enum Error {
332332
#[error("The firmware was built for {elf}, but the detected chip is {detected}")]
333333
#[diagnostic(
334334
code(espflash::chip_mismatch),
335-
help("Ensure that the device is connected and your host recognizes the serial adapter")
335+
help(
336+
"Ensure that the device is connected and your host recognizes the serial adapter. (File {elf}, detected chip is {detected})"
337+
)
336338
)]
337339
FirmwareChipMismatch {
338340
/// Chip which the ELF file was built for

0 commit comments

Comments
 (0)