diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-15T12·55+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-15T12·55+0100 |
commit | 3acc8adcad4066329913cf9ad4e1ccc535f73032 (patch) | |
tree | 8324ab5e1f41f3a11f7f70876f01c911fb9f07d4 /src | |
parent | ea89df2b76811505239b508a570ac9c0ea591038 (diff) |
Add some debug code
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/util.cc | 2 |
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; } } |