X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fstat.cpp;h=ccd344b875e809ecdbf3016e96d4576ab0c898dc;hp=867256e6d8e2d404f6e32e298027730ead262a08;hb=19edaf3b45bc4c23459fc8ddd552dcfa33eecc71;hpb=82f9f26dde92ea0e9714fd8878db8dad186ce7af diff --git a/source/fs/stat.cpp b/source/fs/stat.cpp index 867256e..ccd344b 100644 --- a/source/fs/stat.cpp +++ b/source/fs/stat.cpp @@ -1,8 +1,7 @@ -#include #ifdef WIN32 #include #endif -#include +#include #include "path.h" #include "stat.h" @@ -18,7 +17,7 @@ struct stat stat(const Path &fn) { struct stat st; if(stat(fn, st)==-1) - throw SystemError("stat failed", errno); + throw system_error("stat"); return st; } @@ -35,7 +34,7 @@ struct stat lstat(const Path &fn) { struct stat st; if(lstat(fn, st)==-1) - throw SystemError("lstat failed", errno); + throw system_error("lstat"); return st; }