diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-11-04 09:07:30 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2020-11-04 09:07:30 +0100 |
commit | f40c5c304d71febd2c94815b2e5e8e5f54a24604 (patch) | |
tree | 5d44f4e129c34ce75c4e4faddfe34c872d80664c /src/mod_push.erl | |
parent | mod_push: Support cache config changes on reload (diff) |
mod_push: Fix API call return type on error
A call that yields a 'rescode' isn't supposed to return an error tuple.
Diffstat (limited to '')
-rw-r--r-- | src/mod_push.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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. %%-------------------------------------------------------------------- |