Skip to content

Commit 9bfd0b8

Browse files
authored
Merge pull request #15088 from dependabot/dev/brettfo/nuget-missing-log
raise generic error without path information
2 parents 6d2562b + 98d1729 commit 9bfd0b8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ public static async Task<ImmutableArray<ProjectDiscoveryResult>> DiscoverAsync(s
213213
logger.Warn($" Error determining dependencies from `{startingProjectPath}`:\nSTDOUT:\n{stdOut}\nSTDERR:\n{stdErr}");
214214
}
215215

216+
if (!File.Exists(binLogPath))
217+
{
218+
throw new FileNotFoundException("Dependency discovery didn't produce a log file.");
219+
}
220+
216221
var buildRoot = BinaryLog.ReadBuild(binLogPath);
217222
buildRoot.VisitAllChildren<BaseNode>(node =>
218223
{

0 commit comments

Comments
 (0)