Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Oct 19, 2023
1 parent 7c9440f commit 8f88c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SIL.Machine.AspNetCore/Services/NmtEngineService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public async Task StartBuildAsync(
{
// If there is a pending/running build, then no need to start a new one.
if (await _buildJobService.IsEngineBuilding(engineId, cancellationToken))
throw new InvalidOperationException("The engine has already started a build.");
throw new InvalidOperationException("The engine is already building or in the process of canceling.");

await _buildJobService.StartBuildJobAsync(
BuildJobType.Cpu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public async Task StartBuildAsync(
{
// If there is a pending/running build, then no need to start a new one.
if (await _buildJobService.IsEngineBuilding(engineId, cancellationToken))
throw new InvalidOperationException("The engine has already started a build.");
throw new InvalidOperationException("The engine is already building or in the process of canceling.");

await _buildJobService.StartBuildJobAsync(
BuildJobType.Cpu,
Expand Down

0 comments on commit 8f88c69

Please sign in to comment.