summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index a752bc7add8..05ec57b134a 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -995,7 +995,9 @@ static int replace_user_table(TABLE *table, const LEX_USER &combo,
{
if (combo.password.length != HASH_PASSWORD_LENGTH)
{
- my_error(ER_PASSWORD_NO_MATCH,MYF(0));
+ my_printf_error(ER_PASSWORD_NO_MATCH,
+ "Password hash should be a %d-digit hexadecimal number",
+ MYF(0),HASH_PASSWORD_LENGTH);
DBUG_RETURN(-1);
}
password=combo.password.str;