From 73b4680cf410cd63e792182acd43aa9345055400 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sat, 13 Jan 2024 11:19:16 +0100 Subject: [PATCH] fix(dwarfsc): there's nothing in errno if ostream is bad() or fail() --- src/dwarfsck_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dwarfsck_main.cpp b/src/dwarfsck_main.cpp index e2e533a8..fe00c9e7 100644 --- a/src/dwarfsck_main.cpp +++ b/src/dwarfsck_main.cpp @@ -19,7 +19,6 @@ * along with dwarfs. If not, see . */ -#include #include #include #include @@ -154,7 +153,7 @@ int dwarfsck_main(int argc, sys_char** argv, iolayer const& iol) { #endif iol.out.write(reinterpret_cast(hdr->data()), hdr->size()); if (iol.out.bad() || iol.out.fail()) { - LOG_ERROR << "error writing header: " << ::strerror(errno); + LOG_ERROR << "error writing header"; return 1; } } else {