We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745bef6 commit 73c613aCopy full SHA for 73c613a
espflash/src/error.rs
@@ -234,7 +234,7 @@ pub enum Error {
234
FileOpenError(String, #[source] io::Error),
235
236
#[error("Failed to parse partition table")]
237
- Partition(#[from] esp_idf_part::Error),
+ Partition(CoreError),
238
239
#[error("Invalid response: {0}")]
240
#[diagnostic(code(espflash::invalid_response))]
@@ -307,6 +307,12 @@ impl From<AppDescriptorError> for Error {
307
}
308
309
310
+impl From<esp_idf_part::Error> for Error {
311
+ fn from(err: esp_idf_part::Error) -> Self {
312
+ Self::Partition(Box::new(err))
313
+ }
314
+}
315
+
316
#[cfg(feature = "cli")]
317
impl From<dialoguer::Error> for Error {
318
fn from(err: dialoguer::Error) -> Self {
0 commit comments