fix(backend): catch all remaining errors in the update_post function
Solves the case where a post is updated without a title Fixes #1790
This commit is contained in:
@@ -173,6 +173,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Post do
|
||||
|
||||
{:member, _} ->
|
||||
{:error, dgettext("errors", "Profile is not member of group")}
|
||||
|
||||
_ ->
|
||||
{:error, dgettext("errors", "An error occured while updating your post")}
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user