From 98d1729889a2668f8ad96419af3112d57a079bb0 Mon Sep 17 00:00:00 2001 From: "Brett V. Forsgren" Date: Wed, 20 May 2026 14:14:36 -0600 Subject: [PATCH] raise generic error without path information --- .../NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs index 8156396d3f9..fdb8097d6da 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs @@ -213,6 +213,11 @@ public static async Task> DiscoverAsync(s logger.Warn($" Error determining dependencies from `{startingProjectPath}`:\nSTDOUT:\n{stdOut}\nSTDERR:\n{stdErr}"); } + if (!File.Exists(binLogPath)) + { + throw new FileNotFoundException("Dependency discovery didn't produce a log file."); + } + var buildRoot = BinaryLog.ReadBuild(binLogPath); buildRoot.VisitAllChildren(node => {