From: Joel Rosdahl Date: Wed, 24 Nov 2021 20:25:41 +0000 (+0100) Subject: fix: Correct error message in send_to_fd X-Git-Tag: v4.6~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09722981e6c35bb5c08ae7a8310c23ce112fea06;p=thirdparty%2Fccache.git fix: Correct error message in send_to_fd --- diff --git a/src/Util.cpp b/src/Util.cpp index 1f812fe37..dae186293 100644 --- a/src/Util.cpp +++ b/src/Util.cpp @@ -1221,7 +1221,7 @@ send_to_fd(const Context& ctx, const std::string& text, int fd) try { write_fd(fd, text_to_send->data(), text_to_send->length()); } catch (core::Error& e) { - throw core::Error("Failed to write to stderr: {}", e.what()); + throw core::Error("Failed to write to {}: {}", fd, e.what()); } }