diff --git a/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts b/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts index 44b15bebf72..0d3e8f61475 100644 --- a/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts +++ b/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts @@ -137,7 +137,7 @@ export default class AmazonAIConvertPredictionsProvider extends AbstractConvertP } }); } catch (err) { - rej(err.message); + rej(err); } } @@ -193,7 +193,7 @@ export default class AmazonAIConvertPredictionsProvider extends AbstractConvertP connection.onerror = (errorEvent) => { logger.debug({ errorEvent }); - rej('failed to transcribe'); + rej('failed to transcribe, network error'); }; connection.onclose = (closeEvent) => {