aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
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/libutil/util.cc
parentea89df2b76811505239b508a570ac9c0ea591038 (diff)
Add some debug code
Diffstat (limited to 'src/libutil/util.cc')
-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 bb59b0924..f311b1ae3 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;
}
}