aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-12-15 10:44:53 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-12-15 10:44:53 +0100
commitacb71aa5c6a7a55bc1c483c2a6940d85997d482c (patch)
treef882c4efd92bfe1e8d815f422e239cc178354fb9 /src/libexpr
parent2b0365753a3a0340554f1d722e80693220e892c4 (diff)
Tweak error message
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index df55986f6..afa1fd439 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -584,9 +584,9 @@ Path resolveExprPath(Path path)
while (true) {
// Basic cycle/depth limit to avoid infinite loops.
if (++followCount >= maxFollow)
- throw Error(format("can't resolve expression. infinite symlink recursion in path '%1%'") % path);
+ throw Error("too many symbolic links encountered while traversing the path '%s'", path);
if (lstat(path.c_str(), &st))
- throw SysError(format("getting status of '%1%'") % path);
+ throw SysError("getting status of '%s'", path);
if (!S_ISLNK(st.st_mode)) break;
path = absPath(readLink(path), dirOf(path));
}