diff --git a/src/metrics/hpr_metrics.erl b/src/metrics/hpr_metrics.erl index 720e238..7f99a54 100644 --- a/src/metrics/hpr_metrics.erl +++ b/src/metrics/hpr_metrics.erl @@ -384,7 +384,7 @@ name_to_pid(Name) -> try erlang:list_to_pid(Name) of Pid -> Pid catch - _ -> + _E:_R -> erlang:whereis(erlang:list_to_atom(Name)) end.