error rename

This commit is contained in:
Alexander Strizhakov 2020-03-30 09:09:27 +03:00
parent 9855018425
commit 36abeedf9f
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@ defmodule Pleroma.Emoji.Pack do
{:ok, names}
else
{:ok, %{access: _}} -> {:error, :not_writable}
{:ok, %{access: _}} -> {:error, :no_read_write}
e -> e
end
end

View File

@ -287,7 +287,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
with {:ok, names} <- Pack.import_from_filesystem() do
json(conn, names)
else
{:error, :not_writable} ->
{:error, :no_read_write} ->
conn
|> put_status(:internal_server_error)
|> json(%{error: "Error: emoji pack directory must be writable"})