diff options
author | rinpatch <rinpatch@sdf.org> | 2018-12-01 17:38:45 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2018-12-01 17:38:45 +0300 |
commit | d9a4aed3b3675446d399d195eff0bee77ba63232 (patch) | |
tree | 4f55756bf17efc52529a7ef580c8607aed3f1465 | |
parent | 8c3ff06e35e11a40cf4eb35a41a2019b7496e62c (diff) | |
download | pleroma-d9a4aed3b3675446d399d195eff0bee77ba63232.tar.gz pleroma-d9a4aed3b3675446d399d195eff0bee77ba63232.zip |
replace try/catch with File.Exists? in dev.exs
-rw-r--r-- | config/dev.exs | 11 |
1 files changed, 5 insertions, 6 deletions
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 |