From b52db5e7c120fdf67e914ba9fec648a461e08614 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Fri, 28 Mar 2025 09:44:48 +0100 Subject: [PATCH] gc: fix paths-not-deleted error message The newline was previously omitted when fewer than summaryThreshold paths were present. Change-Id: Ieb9292262f9b5a666784a4273de534941bc31998 --- lix/libstore/gc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lix/libstore/gc.cc b/lix/libstore/gc.cc index cdf0204a3..6d3ab73c7 100644 --- a/lix/libstore/gc.cc +++ b/lix/libstore/gc.cc @@ -836,7 +836,7 @@ try { pathSummary << "\n " << path; const int summaryThreshold = 10; if (n >= summaryThreshold) { - pathSummary << "\nand " << kept.size() - summaryThreshold << " others.\n"; + pathSummary << "\nand " << kept.size() - summaryThreshold << " others."; break; } } @@ -844,7 +844,7 @@ try { "Cannot delete some of the given paths because they are still alive. " "Paths not deleted:" "%1%" - "To find out why, use nix-store --query --roots and nix-store --query --referrers." + "\nTo find out why, use nix-store --query --roots and nix-store --query --referrers." , pathSummary.str() );