Skip to content

Commit

Permalink
Add try catch on parser
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostzero committed Nov 15, 2020
1 parent 64f10ab commit dbc4def
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ public function connect(): void
continue;
}

$this->handleIrcMessage($this->ircMessageParser->parseSingle($message));
try {
$this->handleIrcMessage($this->ircMessageParser->parseSingle($message));
} catch (ParseException $exception) {
$this->debug($exception->getMessage());
}
}
});

Expand Down

0 comments on commit dbc4def

Please sign in to comment.