reject error object instead of just a string (better debugging support)

pull/259/head
Gregory Benner 8 years ago
parent eff0c5ad12
commit c638c8123c
No known key found for this signature in database
GPG Key ID: 20AAFB5935109E08

@ -23,7 +23,7 @@ function waitForVideo(video) {
window.setTimeout(checkVideo, 500); window.setTimeout(checkVideo, 500);
} }
} else { } else {
reject('Unable to play video stream. Is webcam working?'); reject(new Error('Unable to play video stream. Is webcam working?'));
} }
attempts--; attempts--;
} }

Loading…
Cancel
Save