Add missing argument when throwing System_error

This commit is contained in:
Andrew Ayer
2014-09-12 19:40:42 -07:00
parent e9e90fc873
commit 3799a23aa7

View File

@@ -281,7 +281,7 @@ bool successful_exit (int status)
void touch_file (const std::string& filename)
{
if (utimes(filename.c_str(), NULL) == -1) {
throw System_error("utimes", "", errno);
throw System_error("utimes", filename, errno);
}
}