Skip to content

Commit f37529b

Browse files
committed
Change to exception
1 parent 5519a5f commit f37529b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Mochineko/Whisper_API/TranscriptionAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static async UniTask<IUncertainResult<string>> TranscribeAsync(
4444

4545
if (!fileStream.CanRead)
4646
{
47-
return UncertainResults.FailWithTrace<string>($"File stream is not readable.");
47+
throw new InvalidOperationException("File stream must be readable.");
4848
}
4949

5050
if (cancellationToken.IsCancellationRequested)

0 commit comments

Comments
 (0)