about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index bb59b09240ca..f311b1ae37df 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -652,7 +652,7 @@ void AutoCloseFD::close()
     if (fd != -1) {
         if (::close(fd) == -1)
             /* This should never happen. */
-            throw SysError("closing file descriptor");
+            throw SysError(format("closing file descriptor %1%") % fd);
         fd = -1;
     }
 }