diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 1eef4acfc87..913a87dd7f9 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -8035,7 +8035,8 @@ abstract class CommonObject if (! $this->db->query($sql)) { - $this->db->rollback();die($sql); + $this->error = $this->db->lasterror(); + $this->db->rollback(); return -1; }