mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
Feature/UI sideload (#2658)
* ui sideloading * remove subtlecrypto import * fix parser * misc fixes * allow docker pull during compat conversion
This commit is contained in:
@@ -37,7 +37,10 @@ pub trait ContextConfig: DeserializeOwned + Default {
|
||||
.map(|f| f.parse())
|
||||
.transpose()?
|
||||
.unwrap_or_default();
|
||||
format.from_reader(File::open(path)?)
|
||||
format.from_reader(
|
||||
File::open(path.as_ref())
|
||||
.with_ctx(|_| (ErrorKind::Filesystem, path.as_ref().display()))?,
|
||||
)
|
||||
}
|
||||
fn load_path_rec(&mut self, path: Option<impl AsRef<Path>>) -> Result<(), Error> {
|
||||
if let Some(path) = path.filter(|p| p.as_ref().exists()) {
|
||||
|
||||
Reference in New Issue
Block a user