mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 01:12:30 +00:00
fix(discussions): handle changeset errors when updating discussion
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
f2ffcfec5b
commit
ca06ec397f
1 changed files with 3 additions and 0 deletions
|
@ -195,6 +195,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
|||
else
|
||||
{:member, false} ->
|
||||
{:error, :unauthorized}
|
||||
|
||||
{:error, %Ecto.Changeset{} = err} ->
|
||||
{:error, err}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue