mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Be slightly more accurate in an error message.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -340,7 +340,7 @@ void
|
|||||||
Path::getStatusInfo(StatusInfo& info) const {
|
Path::getStatusInfo(StatusInfo& info) const {
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
if (0 != stat(path.c_str(), &buf)) {
|
if (0 != stat(path.c_str(), &buf)) {
|
||||||
ThrowErrno(std::string("Can't get status: ")+path);
|
ThrowErrno(std::string("Can't get status for path: ")+path);
|
||||||
}
|
}
|
||||||
info.fileSize = buf.st_size;
|
info.fileSize = buf.st_size;
|
||||||
info.modTime.fromEpochTime(buf.st_mtime);
|
info.modTime.fromEpochTime(buf.st_mtime);
|
||||||
|
Reference in New Issue
Block a user