summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15 13:55:02 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-15 13:55:02 +0100
commit3acc8adcad4066329913cf9ad4e1ccc535f73032 (patch)
tree8324ab5e1f41f3a11f7f70876f01c911fb9f07d4 /src
parentea89df2b76811505239b508a570ac9c0ea591038 (diff)
downloadguix-3acc8adcad4066329913cf9ad4e1ccc535f73032.tar.gz
Add some debug code
Diffstat (limited to 'src')
-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 bb59b09240..f311b1ae37 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;
     }
 }