fix(exports): properly handle export format not being handled

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-06-20 15:00:29 +02:00
parent 96b4ef08c6
commit a76b1ca66d
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 9 additions and 5 deletions

View file

@ -42,3 +42,4 @@ E7967805C1EA5301F2722C7BDB2F25F3
BDFB0FB1AAF69C18212CBCFD42F8B717 BDFB0FB1AAF69C18212CBCFD42F8B717
40220A533CCACB3A1CE9DBF1A8A430A1 40220A533CCACB3A1CE9DBF1A8A430A1
EEB29D1DDA3A3015BC645A989B5BD38E EEB29D1DDA3A3015BC645A989B5BD38E
5AEE3C678C80E0389C3B0D9D11886EB6

View file

@ -26,10 +26,13 @@ defmodule Mobilizon.Web.ExportController do
{:error, :not_found} {:error, :not_found}
end end
else else
{:error, send_resp(
dgettext("errors", "Export to format %{format} is not enabled on this instance", conn,
format: format 404,
)} dgettext("errors", "Export to format %{format} is not enabled on this instance",
format: format
)
)
end end
end end
end end