From e25fad691aa3ccb492c4fb8840289f76151e553e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 2 Dec 2006 16:41:36 +0000 Subject: * Move addTempRoot() to the store API, and add another function syncWithGC() to allow clients to register GC roots without needing write access to the global roots directory or the GC lock. --- src/libutil/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libutil/util.cc') diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5623b013125e..6d96310dadbb 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -122,7 +122,7 @@ Path dirOf(const Path & path) { Path::size_type pos = path.rfind('/'); if (pos == string::npos) - throw Error(format("invalid file name: %1%") % path); + throw Error(format("invalid file name `%1%'") % path); return pos == 0 ? "/" : Path(path, 0, pos); } @@ -131,7 +131,7 @@ string baseNameOf(const Path & path) { Path::size_type pos = path.rfind('/'); if (pos == string::npos) - throw Error(format("invalid file name %1% ") % path); + throw Error(format("invalid file name `%1%'") % path); return string(path, pos + 1); } -- cgit 1.4.1