Better error when not signed in

This commit is contained in:
Ian Gulliver
2020-09-13 16:51:31 +00:00
parent 4875206ecf
commit 2e7bd5e6a8

View File

@@ -195,7 +195,7 @@ function initClient() {
return loadEvents(); return loadEvents();
} else { } else {
gapi.auth2.getAuthInstance().signIn(); gapi.auth2.getAuthInstance().signIn();
return; return Promise.reject('signin required');
} }
}).then((response) => { }).then((response) => {
events = response.result.items; events = response.result.items;