Skip to content

Commit

Permalink
non-zero exit code if static map render image build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Jan 5, 2024
1 parent 8651689 commit 6353e70
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/mix/tasks/velo.map.static_renderer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ defmodule Mix.Tasks.Velo.Map.StaticRenderer do
@requirements ["app.start"]
@shortdoc "Builds the static renderer executable"
def run(_) do
Logger.info("building static renderer")
if Basemap.Static.Exe.stale?() do
Logger.info("building static renderer")

case Basemap.Static.Exe.ensure() do
{:error, reason} -> Logger.error(reason)
:ok -> :ok
case Basemap.Static.Exe.ensure() do
{:error, reason} ->
Logger.error(reason)
exit({:shutdown, 1})

:ok ->
:ok
end
end
end
end

0 comments on commit 6353e70

Please sign in to comment.