libstore/build: put nix log command on its own line

This way, you can copy paste it easily.

Change-Id: Ie5799d1dea59f26cc0a1b3fde17d4449f49361c5
This commit is contained in:
Raito Bezarius
2025-08-25 09:51:07 +00:00
parent d6ccc6b89c
commit 836644a7a1
+1 -1
View File
@@ -921,7 +921,7 @@ std::string DerivationGoal::buildErrorContents(const std::string & exitMsg, bool
auto nixLogCommand =
experimentalFeatureSettings.isEnabled(Xp::NixCommand) ? "nix log" : "nix-store -l";
msg +=
fmt("For full logs, run: '" ANSI_BOLD "%s %s" ANSI_NORMAL "'.",
fmt("For full logs, run:\n\t" ANSI_BOLD "%s %s" ANSI_NORMAL "",
nixLogCommand,
worker.store.printStorePath(drvPath));
}