From c638c8123c66fadd670ab89771c37e6af0f53187 Mon Sep 17 00:00:00 2001 From: Gregory Benner Date: Fri, 26 Jan 2018 11:16:12 -0500 Subject: [PATCH] reject error object instead of just a string (better debugging support) --- src/input/camera_access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/camera_access.js b/src/input/camera_access.js index 5df6982..9d2d0f4 100644 --- a/src/input/camera_access.js +++ b/src/input/camera_access.js @@ -23,7 +23,7 @@ function waitForVideo(video) { window.setTimeout(checkVideo, 500); } } else { - reject('Unable to play video stream. Is webcam working?'); + reject(new Error('Unable to play video stream. Is webcam working?')); } attempts--; }