From bcc983271df4b9a5959768f952e887b445eb6b4e Mon Sep 17 00:00:00 2001 From: Marius Melzer Date: Sat, 6 Jun 2020 22:06:15 +0200 Subject: [PATCH] Unify error messages --- lib/signal_tower/websocket_handler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/signal_tower/websocket_handler.ex b/lib/signal_tower/websocket_handler.ex index 4b6088e..171a452 100644 --- a/lib/signal_tower/websocket_handler.ex +++ b/lib/signal_tower/websocket_handler.ex @@ -88,7 +88,7 @@ defmodule SignalTower.WebsocketHandler do "Sending message: Could not transform internal object to JSON: #{inspect(msg)}" ) - Poison.encode!(%{event: "error", message: "internal_server_error"}) + Poison.encode!(%{event: "error", description: "internal_server_error", received_msg: %{}}) end end