Minor error in fs_unix.h with std::runtime_error symbol.

This commit is contained in:
David Capello 2012-08-16 12:10:30 -03:00
parent dc9a2ced94
commit c757ff7231

View File

@ -29,7 +29,7 @@ void make_directory(const string& path)
int result = mkdir(path.c_str(), 0777);
if (result < 0) {
// TODO add errno into the exception
throw runtime_error("Error creating directory");
throw std::runtime_error("Error creating directory");
}
}
@ -38,7 +38,7 @@ void remove_directory(const string& path)
int result = rmdir(path.c_str());
if (result != 0) {
// TODO add errno into the exception
throw runtime_error("Error removing directory");
throw std::runtime_error("Error removing directory");
}
}