mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Don’t print error on EPIPE in vrps to stdout. (#807)
This commit suppresses the error message when the vrps command is outputting the data set to stdout and receives a broken pipe error.
This commit is contained in:
+10
-4
@@ -838,10 +838,16 @@ impl Vrps {
|
||||
}
|
||||
};
|
||||
if let Err(err) = res {
|
||||
error!(
|
||||
"Failed to output result: {}",
|
||||
err
|
||||
);
|
||||
// Surpress an error message for broken pipe on stdout.
|
||||
if
|
||||
self.output.is_some() ||
|
||||
err.kind() != io::ErrorKind::BrokenPipe
|
||||
{
|
||||
error!(
|
||||
"Failed to output result: {}",
|
||||
err
|
||||
);
|
||||
}
|
||||
Err(ExitError::Generic)
|
||||
}
|
||||
else if self.complete && !metrics.rsync_complete() {
|
||||
|
||||
Reference in New Issue
Block a user