Add some debug code

This commit is contained in:
Eelco Dolstra
2012-11-15 13:55:02 +01:00
parent ea89df2b76
commit 3acc8adcad
+1 -1
View File
@@ -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;
}
}