]> granicus.if.org Git - ejabberd/commitdiff
Fix error message paramater formatting
authorMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 13:05:19 +0000 (15:05 +0200)
committerMickael Remond <mremond@process-one.net>
Wed, 6 Apr 2016 13:05:19 +0000 (15:05 +0200)
src/mod_admin_extra.erl

index feff8af8a46a57ac1448532dc47d81be6bac615a..c5525143e6c81a9d2a42fbd5138e885c58c4f6d9 100644 (file)
@@ -600,9 +600,9 @@ check_password_hash(User, Host, PasswordHash, HashMethod) ->
                          {A, _} when is_tuple(A) -> scrammed;
                          {_, <<"md5">>} -> get_md5(AccountPass);
                          {_, <<"sha">>} -> get_sha(AccountPass);
-                          {_, _Method} ->
+                          {_, Method} ->
                              ?ERROR_MSG("check_password_hash called "
-                                        "with hash method", [_Method]),
+                                        "with hash method: ~p", [Method]),
                              undefined
                      end,
     case AccountPassHash of