From 2e7bd5e6a815c8a0f15aa628f01e05bf4aebb848 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 13 Sep 2020 16:51:31 +0000 Subject: [PATCH] Better error when not signed in --- simplecal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplecal.js b/simplecal.js index ff120f7..d96ac48 100644 --- a/simplecal.js +++ b/simplecal.js @@ -195,7 +195,7 @@ function initClient() { return loadEvents(); } else { gapi.auth2.getAuthInstance().signIn(); - return; + return Promise.reject('signin required'); } }).then((response) => { events = response.result.items;