aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/factory.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/factory.rs')
-rw-r--r--crates/shirabe/src/factory.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs
index 9a84117e..fe3b5289 100644
--- a/crates/shirabe/src/factory.rs
+++ b/crates/shirabe/src/factory.rs
@@ -903,11 +903,11 @@ impl Factory {
io: std::rc::Rc<std::cell::RefCell<dyn IOInterface>>,
disable_plugins: DisablePlugins,
disable_scripts: bool,
- ) -> Option<PartialComposerHandle> {
+ ) -> anyhow::Result<Option<PartialComposerHandle>> {
let factory = Self::default();
- let config = Self::create_config(Some(io.clone()), None).ok()?;
- factory.create_global_composer(io, &config, disable_plugins, disable_scripts, true)
+ let config = Self::create_config(Some(io.clone()), None)?;
+ Ok(factory.create_global_composer(io, &config, disable_plugins, disable_scripts, true))
}
fn add_local_repository(