Skip to content

Commit

Permalink
Use OperationCanceledException
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkidu93 committed Dec 12, 2024
1 parent 779cb72 commit c62fed8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ CancellationToken cancellationToken

if (trainCount == 0 && (!sourceTagInBaseModel || !targetTagInBaseModel))
{
throw new InvalidOperationException(
throw new OperationCanceledException(
$"At least one language code in build {buildId} is unknown to the base model, and the data specified for training was empty. Build canceled."
);
}
Expand Down

0 comments on commit c62fed8

Please sign in to comment.