Browse Source

Use the STT provider's exception message in the RuntimeException that will be caught by upper contexts

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
tags/v29.0.0beta1
Julien Veyssier 3 months ago
parent
commit
6580bef319
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/private/SpeechToText/SpeechToTextManager.php

+ 1
- 0
lib/private/SpeechToText/SpeechToTextManager.php View File

@@ -141,6 +141,7 @@ class SpeechToTextManager implements ISpeechToTextManager {
return $provider->transcribeFile($file);
} catch (\Throwable $e) {
$this->logger->info('SpeechToText transcription using provider ' . $provider->getName() . ' failed', ['exception' => $e]);
throw new RuntimeException('SpeechToText transcription using provider "' . $provider->getName() . '" failed: ' . $e->getMessage());
}
}


Loading…
Cancel
Save