diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-09-01 14:45:40 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-09-18 12:14:34 +0200 |
| commit | 19deb9b658f102f44cec54ea85839b508017030b (patch) | |
| tree | 88d78c5f9b4004c10b0d46e855f273a01a960c3f /nix | |
| parent | 3a64c0352b89c267631aeca7743cc812a17ff6f6 (diff) | |
daemon: “cannot read potential root” messages shows errno message.
* nix/libstore/gc.cc (findRoots): Print the message corresponding to errno.
Change-Id: Ia0ddfa6512bbeced1fb0c7c0cc69899674330f29
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/libstore/gc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc index 77a2a7027db..610270f907e 100644 --- a/nix/libstore/gc.cc +++ b/nix/libstore/gc.cc @@ -318,7 +318,8 @@ static void findRoots(StoreAPI & store, const Path & path, unsigned char type, R catch (SysError & e) { /* We only ignore permanent failures. */ if (e.errNo == EACCES || e.errNo == ENOENT || e.errNo == ENOTDIR) - printMsg(lvlInfo, format("cannot read potential root `%1%'") % path); + printMsg(lvlInfo, format("cannot read potential root '%1%': %2%") + % path % strerror(e.errNo)); else throw; } |
