diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 7ff04c5f925..113a13e8255 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -911,7 +911,7 @@ if (GETPOST('actionadd') || GETPOST('actionmodify')) { if ($db->errno() == 'DB_ERROR_RECORD_ALREADY_EXISTS') { setEventMessages($langs->transnoentities("ErrorRecordAlreadyExists"), null, 'errors'); } else { - dol_print_error($db); + setEventMessages($db->error(), null, 'errors'); } } }