From: rinpatch Date: Sat, 1 Dec 2018 14:38:45 +0000 (+0300) Subject: replace try/catch with File.Exists? in dev.exs X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d9a4aed3b3675446d399d195eff0bee77ba63232;p=akkoma replace try/catch with File.Exists? in dev.exs --- diff --git a/config/dev.exs b/config/dev.exs index 7b06ad67e..166be721a 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -49,11 +49,10 @@ config :pleroma, Pleroma.Repo, hostname: "localhost", pool_size: 10 -try do +if File.exists?("./config/dev.secret.exs") do import_config "dev.secret.exs" -rescue - _ -> - IO.puts( - "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs" - ) +else + IO.puts( + "!!! RUNNING IN LOCALHOST DEV MODE! !!!\nFEDERATION WON'T WORK UNTIL YOU CONFIGURE A dev.secret.exs" + ) end