Handle todos

This commit is contained in:
Peter Hebden authored and David Peter committed 2023-09-01 20:52:55 +02:00
1 parent d929becefc
commit 906e774372
2 files changed
+13 -2

No files matched your search

+3 -1
View File
@@ -98,7 +98,9 @@ impl<'b> Controller<'b> {
};
if let Err(error) = result {
match writer {
OutputHandle::FmtWrite(writer) => todo!(),
// It doesn't make much sense to send errors straight to stderr if the user
// provided their own buffer, so we just return it.
OutputHandle::FmtWrite(_) => return Err(error),
OutputHandle::IoWrite(ref mut writer) => {
if attached_to_pager {
handle_error(&error, writer);