Commit 59c96fbb authored by Mike Jones's avatar Mike Jones 🌶

Fix some warnings from testing

parent 0771fffa
......@@ -4,7 +4,7 @@ license = MIT
copyright_holder = Mike Jones
copyright_year = 2018
version = 0.005
version = 0.006
[TestRelease]
[ConfirmRelease]
......
......@@ -5,7 +5,7 @@ use Types::Standard qw(Bool Int Object Str);
use WebService::Mattermost::V4::API;
our $VERSION = 0.005;
our $VERSION = 0.006;
with 'WebService::Mattermost::Role::Logger';
......
......@@ -89,7 +89,7 @@ sub _connect {
$self->ws($tx);
unless ($tx->is_websocket) {
$self->logger->fatalf('WebSocket handshake failed: %s', $tx->res->error->{message});
$self->logger->fatal('WebSocket handshake failed');
}
$self->emit(gw_ws_started => {});
......@@ -174,7 +174,7 @@ sub _on_message {
my $message_args = { message => $message };
if ($message->{data}->{post}) {
my $post_data = decode_json($message->{data}->{post});
my $post_data = decode_json(encode('utf8', $message->{data}->{post}));
# Early return if the message is from the bot's own user ID (to halt
# recursion)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment