From 385e9fe0ace7b8bdfaf08c5c876bfe085e0ccf3b Mon Sep 17 00:00:00 2001 From: Mika Kattainen Date: Thu, 24 Sep 2020 15:14:50 +0300 Subject: [PATCH] Add a hack for debugging purposes --- src/groups.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groups.js b/src/groups.js index 65dbe71..14552d3 100644 --- a/src/groups.js +++ b/src/groups.js @@ -27,6 +27,7 @@ async function getMemberData(groupMembers) { }) ).catch(error => { console.log('Failed to get member data: ', error) + return error }) } @@ -67,6 +68,7 @@ async function getAllGroups(userNumber) { }) ).catch(error => { console.log('Failed to get groupAndMemberData: ', error) + return error }) return groupAndMemberData @@ -79,5 +81,6 @@ export async function getGroups(userNumber) { return filteredGroups || [] } catch (error) { console.log('Get groups failed with error: ', error) + return error } }