Use improved error message generation

This commit is contained in:
Jaby
2022-11-17 02:18:24 +01:00
parent 1610ed5ba9
commit 7ea1803c65
2 changed files with 8 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ pub type Output = Box<dyn Write>;
pub type Input = Box<dyn Read>;
#[macro_export]
macro_rules! construct_from_error_if {
macro_rules! format_if_error {
($result:expr, $format_text:literal) => {
tool_helper::callback_if_error($result, |error_text| {
format!($format_text, error_text=error_text)