From 791021e60e3d7531941950317a9670e74770a16a Mon Sep 17 00:00:00 2001 From: Justin Swanson Date: Tue, 12 Nov 2024 20:04:37 -0600 Subject: [PATCH] Stop pipeline on prep exception --- Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs | 2 +- Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs b/Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs index 836bec3e..46b8864b 100644 --- a/Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs +++ b/Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs @@ -48,7 +48,7 @@ public async Task Compile(FilePath targetPath, CancellationToken var result = await Dropoff.EnqueueAndWait(async () => { _logger.Information("Starting build for {TargetPath}", targetPath); - var ret = await ProcessRunner.RunWithCallback( + var ret = await ProcessRunner.RunWithCallback( start, outputCallback: accumulator.Process, errorCallback: e => {}, diff --git a/Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs b/Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs index 7191104a..5e4d8b51 100644 --- a/Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs +++ b/Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs @@ -49,7 +49,10 @@ public RunAPatcher( { // Finish waiting for prep, if it didn't finish var prepException = await prepBundle.Prep.ConfigureAwait(false); - if (prepException != null) return null; + if (prepException != null) + { + throw prepException; + } var args = GetRunArgs.GetArgs( groupRun,