diff --git a/src/SIL.Machine.AspNetCore/Services/TranslationEngineServiceBase.cs b/src/SIL.Machine.AspNetCore/Services/TranslationEngineServiceBase.cs index ea0268792..bb11a4395 100644 --- a/src/SIL.Machine.AspNetCore/Services/TranslationEngineServiceBase.cs +++ b/src/SIL.Machine.AspNetCore/Services/TranslationEngineServiceBase.cs @@ -214,7 +214,7 @@ protected async Task GetEngineAsync(string engineId, Cancella { TranslationEngine? engine = await Engines.GetAsync(e => e.EngineId == engineId, cancellationToken); if (engine is null) - throw new InvalidOperationException(""); + throw new InvalidOperationException($"Engine with id {engineId} does not exist"); return engine; } @@ -223,7 +223,6 @@ protected async Task GetBuiltEngineAsync(string engineId, Can TranslationEngine engine = await GetEngineAsync(engineId, cancellationToken); if (engine.BuildState != BuildState.None || engine.BuildRevision == 0) throw new EngineNotBuiltException("The engine must be built first"); - // throw new RpcException(new Status(StatusCode.Aborted, "The engine must be built first")); return engine; } }