diff --git a/src/mod_push.erl b/src/mod_push.erl index e8e2751b4..a19354f9b 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -243,9 +243,9 @@ delete_old_sessions(Days) -> [] -> ?INFO_MSG("Deleted push sessions older than ~B days", [Days]), ok; - [NotOk | _] -> + [{error, Reason} | _] -> ?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]), - NotOk + Reason end. %%--------------------------------------------------------------------