diff --git a/lib/postgrex/protocol.ex b/lib/postgrex/protocol.ex index a9dfc12f..92bbeeb6 100644 --- a/lib/postgrex/protocol.ex +++ b/lib/postgrex/protocol.ex @@ -205,7 +205,7 @@ defmodule Postgrex.Protocol do defp fetch_database(opts) do case Keyword.fetch(opts, :database) do {:ok, value} -> - value + {:ok, value} :error -> message = "missing the :database key in options for #{inspect(opts[:repo])}"