chiark / gitweb /
utils: error end_process: Do not print duplicate messages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 1 Jun 2021 00:26:15 +0000 (01:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 1 Jun 2021 00:33:18 +0000 (01:33 +0100)
commita1d09806c815e76a6349706a5ce1de75ce1f0816
tree3631416f4f8d8a73e396b5bea2318a208ddfc514
parent2a6d21cdcbd645d9c1b204415796505dfcd57e76
utils: error end_process: Do not print duplicate messages

Sometimes we use thiserror to put {0} of an inner error in our Display
impl.  If that happens, just skip the repetition.

This is a slight bodge.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/utils.rs