Fix error message

This commit is contained in:
Laurent Destailleur 2018-06-20 23:50:50 +02:00
parent a3b9d4f01b
commit 1a8afeff2a

View File

@ -675,14 +675,14 @@ class Contrat extends CommonObject
} }
else else
{ {
dol_syslog(get_class($this)."::Fetch Erreur contrat non trouve"); dol_syslog(get_class($this)."::fetch Contract not found");
$this->error="Contract not found"; $this->error="Contract not found";
return 0; return 0;
} }
} }
else else
{ {
dol_syslog(get_class($this)."::Fetch Erreur lecture contrat"); dol_syslog(get_class($this)."::fetch Error searching contract");
$this->error=$this->db->error(); $this->error=$this->db->error();
return -1; return -1;
} }