Skip to content

Commit

Permalink
Merge pull request #68 from NoBrainSkull/master
Browse files Browse the repository at this point in the history
validate_directory_url: fix error return
  • Loading branch information
sasa1977 authored Jun 23, 2024
2 parents 735105d + e0ff7f1 commit 046fbec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/site_encrypt.ex
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ defmodule SiteEncrypt do
port = Keyword.get(opts, :port)

cond do
is_nil(port) -> "missing port for the internal CA server"
not is_integer(port) -> "port for the internal CA server must be an integer"
port <= 0 -> "port for the internal CA server must be a positive integer"
is_nil(port) -> {:error, "missing port for the internal CA server"}
not is_integer(port) -> {:error, "port for the internal CA server must be an integer"}
port <= 0 -> {:error, "port for the internal CA server must be a positive integer"}
true -> {:ok, internal}
end
end
Expand Down

0 comments on commit 046fbec

Please sign in to comment.