error rename
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 30 Mar 2020 06:09:27 +0000 (09:09 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Thu, 30 Apr 2020 13:09:22 +0000 (16:09 +0300)
lib/pleroma/emoji/pack.ex
lib/pleroma/web/pleroma_api/controllers/emoji_api_controller.ex

index eb50e52fab32384225e58ae13489c031218ede9e..242344374ffdb8a0b2708dd4301a93f4bd73233e 100644 (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
index 83a7f03e8b0a382493d2eae290e674523bc0417c..7af9d38a1e71b960a47688d89fcca1cd2608eb37 100644 (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"})