diff --git a/lib/kmxgit_web/router.ex b/lib/kmxgit_web/router.ex
index 3cdb313..333603a 100644
--- a/lib/kmxgit_web/router.ex
+++ b/lib/kmxgit_web/router.ex
@@ -168,7 +168,11 @@ end
if Mix.env() != :dev do
use Plug.ErrorHandler
@impl Plug.ErrorHandler
+ def handle_errors(conn, params = %{reason: Elixir.Plug.CSRFProtection.InvalidCSRFTokenError}) do
+ send_resp(conn, conn.status, "Error !")
+ end
def handle_errors(conn, params) do
+ IO.inspect(params)
Discord.error(conn, params)
send_resp(conn, conn.status, "Error ! We have been notified, please retry later.")
end