From e0ff7f136be89d9894bc749e90f09649de990da4 Mon Sep 17 00:00:00 2001 From: noBrainSkull Date: Sat, 22 Jun 2024 10:33:09 +0200 Subject: [PATCH] validate_directory_url: fix error return --- lib/site_encrypt.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/site_encrypt.ex b/lib/site_encrypt.ex index e6aa0ad..a51536b 100644 --- a/lib/site_encrypt.ex +++ b/lib/site_encrypt.ex @@ -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