filter out usb stick during install (#1974)

* filter out usb stick during install

* remove duplicate error kind

* clean out newline
This commit is contained in:
Aiden McClelland
2022-11-26 15:10:39 -07:00
parent 2336e36314
commit 96f77a6275
6 changed files with 48 additions and 35 deletions

View File

@@ -108,7 +108,7 @@ impl HttpReader {
"{} HTTP range downloading not supported with this unit {value}",
http_url
),
crate::ErrorKind::HttpRange,
crate::ErrorKind::MissingHeader,
));
}
}
@@ -121,7 +121,7 @@ impl HttpReader {
"{} HTTP range downloading not supported with this url",
http_url
),
crate::ErrorKind::HttpRange,
crate::ErrorKind::MissingHeader,
))
}
};
@@ -136,7 +136,7 @@ impl HttpReader {
None => {
return Err(Error::new(
eyre!("No content length headers for {}", http_url),
crate::ErrorKind::ContentLength,
crate::ErrorKind::MissingHeader,
))
}
};