From ca6f8d085a81ce62bf18b7bb6ee9b5811f836e16 Mon Sep 17 00:00:00 2001 From: Gazook89 <58999374+Gazook89@users.noreply.github.com> Date: Tue, 29 Nov 2022 12:57:27 -0600 Subject: [PATCH] changing messaging about googleActions --- server/googleActions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/googleActions.js b/server/googleActions.js index 0417fff43..56f449cfd 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -15,8 +15,12 @@ try { 'https://www.googleapis.com/auth/drive' ]; } catch (err) { - console.warn(err); - console.log('Please make sure that a Google Service Account is set up properly in your config files.'); + if(!keys){ + console.log('No Google Service Account in config files - Google Drive functionality will not function.'); + } else { + console.warn(err); + console.log('Please make sure that a Google Service Account is set up properly in your config files.'); + } } google.options({ auth: serviceAuth || config.get('google_api_key') });