mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Merge branch 'fixes' into 'master'
Handle errors from comment changeset as well when creating discussions See merge request framasoft/mobilizon!902
This commit is contained in:
commit
fc94651577
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
|||
}) do
|
||||
{:ok, discussion}
|
||||
else
|
||||
{:error, :discussion, err, _} ->
|
||||
{:error, type, err, _} when type in [:discussion, :comment] ->
|
||||
{:error, err}
|
||||
|
||||
{:member, false} ->
|
||||
|
|
Loading…
Reference in a new issue