summaryrefslogtreecommitdiff
path: root/apt-private/private-cmndline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-private/private-cmndline.cc')
-rw-r--r--apt-private/private-cmndline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc
index 67a34a2c7..e16aa7280 100644
--- a/apt-private/private-cmndline.cc
+++ b/apt-private/private-cmndline.cc
@@ -622,7 +622,7 @@ unsigned short DispatchCommandLine(CommandLine &CmdL, std::vector<CommandLine::D
_error->DumpErrors();
else
_error->DumpErrors(GlobalError::NOTICE);
- if (returned == false)
+ if (returned == false || std::cout.bad() || std::cerr.bad() || std::clog.bad())
return 100;
return Errors == true ? 100 : 0;
}