Apply suggestion to lib/pleroma/web/pleroma_api/controllers/chat_controller.ex
authorlain <lain@soykaf.club>
Wed, 29 Apr 2020 19:49:03 +0000 (19:49 +0000)
committerlain <lain@soykaf.club>
Wed, 29 Apr 2020 19:49:03 +0000 (19:49 +0000)
lib/pleroma/web/pleroma_api/controllers/chat_controller.ex

index 8654f4295926a64b420571a9a8b3fe98df3ea45f..1752579211d8d5cf135e35641766bf62ac276054 100644 (file)
@@ -31,7 +31,7 @@ defmodule Pleroma.Web.PleromaAPI.ChatController do
     %{scopes: ["read:statuses"]} when action in [:messages, :index]
   )
 
-  plug(OpenApiSpex.Plug.CastAndValidate)
+  plug(OpenApiSpex.Plug.CastAndValidate, render_error: Pleroma.Web.ApiSpec.RenderError)
 
   defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.ChatOperation