Skip to content

Commit

Permalink
fix reject promise transcribe #2
Browse files Browse the repository at this point in the history
  • Loading branch information
elorzafe committed Jul 31, 2019
1 parent 7c0c9c0 commit 22759ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default class AmazonAIConvertPredictionsProvider extends AbstractConvertP
}
});
} catch (err) {
rej(err.message);
rej(err);
}
}

Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 22759ed

Please sign in to comment.