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 7ddc655 commit 9075ab7Copy full SHA for 9075ab7
bear/src/modes/mod.rs
@@ -281,11 +281,12 @@ mod impls {
281
output: args::BuildSemantic,
282
config: &config::Main,
283
) -> Result<Self, WriterCreationError> {
284
- let interpreter = Box::new(semantic::interpreters::create(config));
+ let interpreter = semantic::interpreters::create(config)
285
+ .map_err(|err| WriterCreationError::Configuration(err.to_string()))?;
286
let writer = output::OutputWriter::try_from((&output, &config.output))?;
287
288
Ok(Self {
- interpreter,
289
+ interpreter: Box::new(interpreter),
290
writer,
291
})
292
}
0 commit comments