From 3acc8adcad4066329913cf9ad4e1ccc535f73032 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Nov 2012 13:55:02 +0100 Subject: Add some debug code --- src/libutil/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/util.cc') 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; } } -- cgit v1.2.3