Skip to content

Commit

Permalink
Stop pipeline on prep exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Nov 13, 2024
1 parent 6ace9f9 commit 791021e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Synthesis.Bethesda.Execution/DotNet/Builder/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async Task<ErrorResponse> 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 => {},
Expand Down
5 changes: 4 additions & 1 deletion Synthesis.Bethesda.Execution/Running/Runner/RunAPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 791021e

Please sign in to comment.