mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-05 16:39:47 +00:00
error rename
This commit is contained in:
parent
9855018425
commit
36abeedf9f
2 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ defmodule Pleroma.Emoji.Pack do
|
||||||
|
|
||||||
{:ok, names}
|
{:ok, names}
|
||||||
else
|
else
|
||||||
{:ok, %{access: _}} -> {:error, :not_writable}
|
{:ok, %{access: _}} -> {:error, :no_read_write}
|
||||||
e -> e
|
e -> e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -287,7 +287,7 @@ defmodule Pleroma.Web.PleromaAPI.EmojiAPIController do
|
||||||
with {:ok, names} <- Pack.import_from_filesystem() do
|
with {:ok, names} <- Pack.import_from_filesystem() do
|
||||||
json(conn, names)
|
json(conn, names)
|
||||||
else
|
else
|
||||||
{:error, :not_writable} ->
|
{:error, :no_read_write} ->
|
||||||
conn
|
conn
|
||||||
|> put_status(:internal_server_error)
|
|> put_status(:internal_server_error)
|
||||||
|> json(%{error: "Error: emoji pack directory must be writable"})
|
|> json(%{error: "Error: emoji pack directory must be writable"})
|
||||||
|
|
Loading…
Reference in a new issue