diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index 2216d44a416..1734347bd18 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -482,8 +482,9 @@ class pdf_crabe extends ModelePDFFactures } else { - $this->error=$langs->trans("ErrorSQL")." $sql"; - return 0; + $this->error=$outputlangs->trans("ErrorSQL")." sql=".$sql; + dolibarr_syslog($this->db,$this->error); + return -1; } }