Throw errors

This commit is contained in:
Henri Bergius 2017-11-28 22:46:40 +01:00
parent 6076dd97af
commit a4723d19d1

View file

@ -95,8 +95,7 @@ window.addEventListener('load', () => {
const p = DisplayParticipant(params.broker, params.role, params.urls, params.timer); const p = DisplayParticipant(params.broker, params.role, params.urls, params.timer);
p.start((err) => { p.start((err) => {
if (err) { if (err) {
console.error(err); throw err;
return;
} }
p.send('open', getRotationUrl(params.urls)); p.send('open', getRotationUrl(params.urls));
}); });