Skip to content

Add a diagnostic to tell the user about the partition table format - #397

Merged
MabezDev merged 1 commit into
mainfrom
diagnostic/link-to-partition-table-info
May 4, 2023
Merged

Add a diagnostic to tell the user about the partition table format #397
MabezDev merged 1 commit into
mainfrom
diagnostic/link-to-partition-table-info

Conversation

@MabezDev

@MabezDev MabezDev commented May 3, 2023

Copy link
Copy Markdown
Member

When the image doesn't fit.

@SergioGasquez SergioGasquez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just fyi, miette supports a url param under #[diagnostic], see https://github.com/zkat/miette#-diagnostic-code-urls

@MabezDev
MabezDev force-pushed the diagnostic/link-to-partition-table-info branch from d854cd3 to d33e6a1 Compare May 4, 2023 10:37
@MabezDev

MabezDev commented May 4, 2023

Copy link
Copy Markdown
Member Author

Just fyi, miette supports a url param under #[diagnostic], see https://github.com/zkat/miette#-diagnostic-code-urls

Thanks! I didn't know about that, I've updated the diagnostic to use the URL feature.

@MabezDev MabezDev mentioned this pull request May 4, 2023
@MabezDev
MabezDev merged commit 6d52193 into main May 4, 2023
Comment thread espflash/src/error.rs
)]
#[diagnostic(
code(espflash::image_too_big),
help("Reduce the size of the binary or increase the size of the partition."),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would have preferred this to say "increase the size of the app partition", as it's pretty ambiguous now. Will fix it in another PR before release I guess.

MabezDev added a commit that referenced this pull request May 5, 2023
@MabezDev MabezDev mentioned this pull request May 5, 2023
jessebraham pushed a commit that referenced this pull request May 5, 2023
@jessebraham
jessebraham deleted the diagnostic/link-to-partition-table-info branch July 13, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants