Show why GC socket connection was refused

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Eelco Dolstra 2024-01-08 14:14:36 +01:00 committed by GitHub
parent 3859b42597
commit faf87b51f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,7 @@ void LocalStore::addTempRoot(const StorePath & path)
/* The garbage collector may have exited or not
created the socket yet, so we need to restart. */
if (e.errNo == ECONNREFUSED || e.errNo == ENOENT) {
debug("GC socket connection refused");
debug("GC socket connection refused: %s", e.msg())
fdRootsSocket->close();
goto restart;
}