~cypheon/ecertmon

313149b72f33613c6bc6a8b8efbf05fac4dcc999 — Johann Rudloff 3 months ago b5c5bf8 main
Return empty list instead of 0 in error case
1 files changed, 1 insertions(+), 1 deletions(-)

M src/metrics_handler.erl
M src/metrics_handler.erl => src/metrics_handler.erl +1 -1
@@ 11,7 11,7 @@ format_metric({Hostname, Port}) ->
          catch
            exit:Reason ->
              logger:error("failed to get status for ~p: Reason: ~p", [{Hostname, Port}, Reason]),
              0
              []
          end,
  Valid = proplists:get_value(valid, Response, 0),
  Errors = proplists:get_value(errors, Response, 0),