Skip to content

Commit

Permalink
Added error message --ECL
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Sep 12, 2023
1 parent 101340c commit a7eb53c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ protected async Task<TranslationEngine> 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;
}

Expand All @@ -223,7 +223,6 @@ protected async Task<TranslationEngine> 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;
}
}

0 comments on commit a7eb53c

Please sign in to comment.