1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

restore the error message that was changed by mistake

add a test case
This commit is contained in:
Sergei Golubchik
2024-05-21 20:35:00 +02:00
parent 443aa52c35
commit 9cb0bb1de0
3 changed files with 8 additions and 1 deletions

View File

@ -1222,7 +1222,8 @@ err:
DBUG_ASSERT(!name->str || !dupes); // dupes is ONLY for name->str == 0
if (errs == 0 && oks == 0 && !dupes) // no plugin was found
my_error(ER_PLUGIN_IS_NOT_LOADED, MyFlags, name->str);
my_error(ER_CANT_FIND_DL_ENTRY, MyFlags, name->str, tmp.plugin_dl->dl.str);
plugin_dl_del(tmp.plugin_dl);
if (errs > 0 || oks + dupes == 0)