Skip to content

Commit

Permalink
Fixed a few more error lines
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicnessTwo committed Aug 3, 2024
1 parent 9110b62 commit 8c8380f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions run.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ function logOutage(start, end) {
}, err => {
if(err) consoleLog('error','Error logging event:', err);
else {
consoleLog('info', 'Logged outage to Google Calendar:', start, 'to', end);
consoleLog('info', 'Logged outage to Google Calendar: ' + start + ' to ' + end);
sendDiscordNotification(start, end).then(() => {
outageStart = null;
}).catch(error => {
consoleLog('error', 'Failed to send Discord notification:', error);
consoleLog('error', 'Failed to send Discord notification: ' + error);
});
}
});
Expand Down Expand Up @@ -152,7 +152,7 @@ function pushTestEvent() {
calendarId: CALENDAR_ID,
resource: event
}, err => {
if(err) consoleLog('error', 'Error pushing test event:', err);
if(err) consoleLog('error', 'Error pushing test event: ' + err);
else consoleLog('info', 'Pushed test event to Google Calendar.');
});
}
Expand Down

0 comments on commit 8c8380f

Please sign in to comment.