diff --git a/htdocs/holiday/index.php b/htdocs/holiday/index.php
index cea61ea5b59..4c660bf6526 100644
--- a/htdocs/holiday/index.php
+++ b/htdocs/holiday/index.php
@@ -186,10 +186,7 @@ if ($holiday_payes == '-1')
{
print_fiche_titre($langs->trans('CPTitreMenu'));
- print '
';
- print ''.$langs->trans('CPErrorSQL');
- print ' '.$holiday->error.'';
- print '
';
+ dol_print_error($db, $langs->trans('Error').' '.$holiday->error);
exit();
}
diff --git a/htdocs/langs/en_US/holiday.lang b/htdocs/langs/en_US/holiday.lang
index 0c755ca3301..da03299e0da 100644
--- a/htdocs/langs/en_US/holiday.lang
+++ b/htdocs/langs/en_US/holiday.lang
@@ -8,7 +8,6 @@ NotActiveModCP=You must enable the module holidays to view this page.
NotConfigModCP=You must configure the module holidays to view this page. To do this, click here a>.
NoCPforUser=You don't have a demand for holidays.
AddCP=Apply for holidays
-CPErrorSQL=An SQL error occurred:
Employe=Employee
DateDebCP=Start date
DateFinCP=End date