Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
fix: #25 change warn to throw for sendSignal
Browse files Browse the repository at this point in the history
  • Loading branch information
andyyou committed Oct 13, 2020
1 parent 3b7307e commit 162fcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -262,7 +262,7 @@ const useOpenTok = () => {

session.signal(signal, error => {
if (error) {
console.warn('[ReactUseOpenTok] sendSignal error: ' + error.message);
throw new Error('[ReactUseOpenTok] sendSignal error: ' + error.message);
} else if (typeof completionHandler === 'function') {
completionHandler();
}
Expand Down

0 comments on commit 162fcbe

Please sign in to comment.