forked from potsda.mn/mobilizon
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
|
@ -195,6 +195,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Discussion do
|
||||||
else
|
else
|
||||||
{:member, false} ->
|
{:member, false} ->
|
||||||
{:error, :unauthorized}
|
{:error, :unauthorized}
|
||||||
|
|
||||||
|
{:error, %Ecto.Changeset{} = err} ->
|
||||||
|
{:error, err}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue