Replace `get_err_msg` macro with a function
authorMatt Corallo <git@bluematt.me>
Fri, 10 Feb 2023 19:56:42 +0000 (19:56 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 1 Mar 2023 18:29:27 +0000 (18:29 +0000)
commit35bb0f467645b3c756c0b998bb7ea052bac57581
tree64221cf091649da7e84c0d96047a097bb3795028
parent90b2f5e1aaa2a564d6ca4f5dd9991bcab1a30a05
Replace `get_err_msg` macro with a function

The `get_err_msg!()` macro has no reason to be a macro so here we
move its logic to a function and leave the macro in place to avoid
touching every line of code in the tests.

This reduces the `--profile=test --lib` `Zpretty=expanded` code
size from 322,183 LoC to 321,985 LoC.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/priv_short_conf_tests.rs