From d0b88db44138c6348bb8ed587286f6016ea11f4a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 20 Nov 2017 17:32:58 +0100 Subject: [PATCH] Cleanup --- src/libutil/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 96c0cd783..197df0c44 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); }