Errors: Mark the type of an error, for clarity
We want to call ErrorReport::report() on Errors, but this isn't an Error but only a string.
This commit is contained in:
parent
705638df22
commit
c2e4b8b7f9
|
@ -481,10 +481,10 @@ fn padding_parameters(
|
|||
};
|
||||
|
||||
padding_parameters_builder(reduced, netdir)
|
||||
.unwrap_or_else(|e| {
|
||||
.unwrap_or_else(|e: &str| {
|
||||
info!(
|
||||
"consensus channel padding parameters wrong, using defaults: {}",
|
||||
&e
|
||||
&e,
|
||||
);
|
||||
Some(PaddingParametersBuilder::default())
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue