mirror of
https://github.com/nextcloud/server.git
synced 2024-09-14 00:02:46 +02:00
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>
This commit is contained in:
parent
3fb1674251
commit
6580bef319
@ -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…
Reference in New Issue
Block a user