summary refs log tree commit diff
path: root/nix/libstore
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-12-17 12:25:47 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-18 01:16:47 +0100
commit2d4d26769d6a3be1b21302b0bb2bd099fd55ccf8 (patch)
tree1b975e7063a14a4972852df5129befad57b159c2 /nix/libstore
parent239bfe2ec1fa3b4305500211e6cade6e4bda2a62 (diff)
downloadguix-2d4d26769d6a3be1b21302b0bb2bd099fd55ccf8.tar.gz
daemon: Make "opening file" error messages distinguishable.
* nix/libstore/build.cc (DerivationGoal::openLogFile): Customize
"opening file" error message.
* nix/libutil/hash.cc (hashFile): Likewise.
* nix/libutil/util.cc (readFile, writeFile): Likewise.
Diffstat (limited to 'nix/libstore')
-rw-r--r--nix/libstore/build.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/build.cc b/nix/libstore/build.cc
index 10a6093bd5..c5383bc756 100644
--- a/nix/libstore/build.cc
+++ b/nix/libstore/build.cc
@@ -2576,7 +2576,7 @@ Path DerivationGoal::openLogFile()
         closeOnExec(fd);
 
         if (!(fLogFile = fdopen(fd.borrow(), "w")))
-            throw SysError(format("opening file `%1%'") % logFileName);
+            throw SysError(format("opening log file `%1%'") % logFileName);
 
         int err;
         if (!(bzLogFile = BZ2_bzWriteOpen(&err, fLogFile, 9, 0, 0)))