Make mix tasks work in a release
This commit is contained in:
parent
4b98a7ce4e
commit
d7ec0898e5
7 changed files with 128 additions and 58 deletions
|
|
@ -30,7 +30,7 @@ defmodule Mix.Tasks.Pleroma.Relay do
|
|||
# put this task to sleep to allow the genserver to push out the messages
|
||||
:timer.sleep(500)
|
||||
else
|
||||
{:error, e} -> Mix.shell().error("Error while following #{target}: #{inspect(e)}")
|
||||
{:error, e} -> Common.shell_error("Error while following #{target}: #{inspect(e)}")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ defmodule Mix.Tasks.Pleroma.Relay do
|
|||
# put this task to sleep to allow the genserver to push out the messages
|
||||
:timer.sleep(500)
|
||||
else
|
||||
{:error, e} -> Mix.shell().error("Error while following #{target}: #{inspect(e)}")
|
||||
{:error, e} -> Common.shell_error("Error while following #{target}: #{inspect(e)}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue