Skip to content

Commit

Permalink
fix: Logfile reference error
Browse files Browse the repository at this point in the history
Sentry TWITCH2MA-N
  • Loading branch information
schw4rzlicht committed Jun 16, 2020
1 parent ea4a017 commit af67cb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function emitSocketEvent(event: string) {
}

function openCommandSocket() {
commandSocket.onError(exitWithError);
commandSocket.onError(error => exitWithError(error));
commandSocket.onExitCommand(() => {
logger.socketMessage("Exit command received!");
exit(0);
Expand Down Expand Up @@ -174,8 +174,8 @@ export async function attachEventHandlers(twitch2Ma: Twitch2Ma): Promise<Twitch2
twitch2Ma.onPermissionDenied((channel, user, command, reason) => logger.channelMessage(channel,
chalk`✋ User {bold ${user}} tried to run {bold.blue ${command}} but permissions were denied by ${reason}.`))

twitch2Ma.onNotice(logger.notice);
twitch2Ma.onError(exitWithError);
twitch2Ma.onNotice(message => logger.notice(message));
twitch2Ma.onError(error => exitWithError(error));

return twitch2Ma;
}
Expand Down

0 comments on commit af67cb5

Please sign in to comment.