about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15T12·55+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15T12·55+0100
commit3acc8adcad4066329913cf9ad4e1ccc535f73032 (patch)
tree8324ab5e1f41f3a11f7f70876f01c911fb9f07d4
parentea89df2b76811505239b508a570ac9c0ea591038 (diff)
Add some debug code
-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;
     }
 }