This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Five patches for std::experimental::filesystem


On 10/11/16 17:29 +0000, Chris Fairles wrote:
"cannot check is file is empty" -> *if

This patch fixes the typo. I haven't looked at the failure yet.

Will commit to trunk shortly.

commit 9882c567342019c9561b44e611af9d42cdf23f3b
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Sat Nov 12 20:14:07 2016 +0000

    	* src/filesystem/ops.cc (is_empty): Fix typo in exception message.

diff --git a/libstdc++-v3/src/filesystem/ops.cc b/libstdc++-v3/src/filesystem/ops.cc
index 8ed0a10..0dcb1b4 100644
--- a/libstdc++-v3/src/filesystem/ops.cc
+++ b/libstdc++-v3/src/filesystem/ops.cc
@@ -1054,7 +1054,7 @@ fs::is_empty(const path& p)
   error_code ec;
   bool e = is_empty(p, ec);
   if (ec)
-    _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot check is file is empty",
+    _GLIBCXX_THROW_OR_ABORT(filesystem_error("cannot check if file is empty",
 					     p, ec));
   return e;
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]