about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-20T16·32+0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-20T16·32+0100
commitd0b88db44138c6348bb8ed587286f6016ea11f4a (patch)
tree52973ad0eeda9063b2e7ea70586034626c6910ce
parent7a2b64e55c7d57707f4d1ed54ee21bf69d0d0d16 (diff)
Cleanup
-rw-r--r--src/libutil/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 96c0cd78383d..197df0c44aa0 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -221,9 +221,9 @@ Path readLink(const Path & path)
         ssize_t rlSize = readlink(path.c_str(), buf, bufSize);
         if (rlSize == -1)
             if (errno == EINVAL)
-                throw Error(format("'%1%' is not a symlink") % path);
+                throw Error("'%1%' is not a symlink", path);
             else
-                throw SysError(format("reading symbolic link '%1%'") % path);
+                throw SysError("reading symbolic link '%1%'", path);
         else if (rlSize < bufSize)
             return string(buf, rlSize);
     }