mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Clean up logging of API errors
This commit is contained in:
parent
f06ebe4e25
commit
3dde59c4a6
1 changed files with 1 additions and 2 deletions
|
|
@ -54,8 +54,6 @@ export class RealisticTextToSpeech implements TextToSpeech {
|
|||
}
|
||||
|
||||
const requestUrl = `${apiEndpoint}${voiceId}`
|
||||
console.log('using voice id', voiceId, requestUrl)
|
||||
|
||||
const response = await axios.post<Buffer>(
|
||||
requestUrl,
|
||||
{
|
||||
|
|
@ -68,6 +66,7 @@ export class RealisticTextToSpeech implements TextToSpeech {
|
|||
)
|
||||
|
||||
if (response.data.length === 0) {
|
||||
console.log('No payload returned: ', response)
|
||||
throw new Error('No payload returned')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue