]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Correct error message in send_to_fd
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 24 Nov 2021 20:25:41 +0000 (21:25 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 24 Nov 2021 20:25:41 +0000 (21:25 +0100)
src/Util.cpp

index 1f812fe37d827b4e46e3c101d851ee93193f98be..dae186293034bd39fc920a65842b1495bb5d3e65 100644 (file)
@@ -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());
   }
 }