aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/worker.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-25 12:50:57 +0100
committerGitHub <noreply@github.com>2021-01-25 12:50:57 +0100
commit488a826842296c9c2933fb53cc884ed8518f9110 (patch)
tree5ab9dd63a9609ddaec8f5ba136b78ffd6eef734c /src/libstore/build/worker.cc
parentc5b42c5a42138329c6d02da0d8a53cb59c6077f4 (diff)
parent0eb22db3116585821096b7b81295d4bbf5550343 (diff)
Merge pull request #4467 from edolstra/error-formatting
Improve error formatting
Diffstat (limited to 'src/libstore/build/worker.cc')
-rw-r--r--src/libstore/build/worker.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstore/build/worker.cc b/src/libstore/build/worker.cc
index a9575fb0f..2f13aa885 100644
--- a/src/libstore/build/worker.cc
+++ b/src/libstore/build/worker.cc
@@ -456,10 +456,7 @@ bool Worker::pathContentsGood(const StorePath & path)
}
pathContentsGoodCache.insert_or_assign(path, res);
if (!res)
- logError({
- .name = "Corrupted path",
- .hint = hintfmt("path '%s' is corrupted or missing!", store.printStorePath(path))
- });
+ printError("path '%s' is corrupted or missing!", store.printStorePath(path));
return res;
}