Use PrintableString for displaying errors in PeerManager
authorVladimir Fomene <vladimirfomene@gmail.com>
Wed, 7 Jun 2023 04:48:28 +0000 (07:48 +0300)
committerVladimir Fomene <vladimirfomene@gmail.com>
Wed, 7 Jun 2023 18:38:23 +0000 (21:38 +0300)
commitb5c89cc977ecb593e282890aafd99ce0668136b8
tree0ed8ea87d9540d8fac94837dec06806a12df8d5d
parentfb140b55c73171ad91992e39563e970791b66855
Use PrintableString for displaying errors in PeerManager

We currently just print "with non-ASCII error message"
to log when we see non-ASCII chars, but should instead
use our fancy PrintableString type to display the
untrusted string and ignore control chars.
lightning/src/ln/peer_handler.rs