[llvm-commits] CVS: llvm/lib/System/Unix/Path.inc

Reid Spencer reid at x10sys.com
Mon Aug 21 22:28:52 PDT 2006



Changes in directory llvm/lib/System/Unix:

Path.inc updated: 1.51 -> 1.52
---
Log message:

Make an error message a little more intelligible.


---
Diffs of the changes:  (+1 -1)

 Path.inc |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/System/Unix/Path.inc
diff -u llvm/lib/System/Unix/Path.inc:1.51 llvm/lib/System/Unix/Path.inc:1.52
--- llvm/lib/System/Unix/Path.inc:1.51	Mon Aug  7 00:20:05 2006
+++ llvm/lib/System/Unix/Path.inc	Tue Aug 22 00:28:38 2006
@@ -352,7 +352,7 @@
 Path::getFileStatus(FileStatus &info, std::string *ErrStr) const {
   struct stat buf;
   if (0 != stat(path.c_str(), &buf))
-    return GetErrno(path + ": can't determine type of path object: ", ErrStr);
+    return GetErrno(path + ": can't get status of file '" + path + "'", ErrStr);
   info.fileSize = buf.st_size;
   info.modTime.fromEpochTime(buf.st_mtime);
   info.mode = buf.st_mode;






More information about the llvm-commits mailing list