Make test.exs read config in the same way as dev.exs

This way, if your test.secret.exs has an error, you'll actually see it.
This commit is contained in:
Mike Verdone 2019-07-22 09:10:30 +02:00
parent 8ba7a151ad
commit b729402774
1 changed files with 5 additions and 6 deletions

View File

@ -82,11 +82,10 @@
config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock
try do
if File.exists?("./config/test.secret.exs") do
import_config "test.secret.exs"
rescue
_ ->
IO.puts(
"You may want to create test.secret.exs to declare custom database connection parameters."
)
else
IO.puts(
"You may want to create test.secret.exs to declare custom database connection parameters."
)
end