Fix: bad error management
This commit is contained in:
parent
23dea40504
commit
f575dd4ae5
1 changed files with 2 additions and 2 deletions
|
|
@ -354,7 +354,7 @@ if (empty($reshook))
|
|||
else
|
||||
{
|
||||
$db->rollback();
|
||||
dol_print_error($object->db);
|
||||
dol_print_error($db,$object->error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -362,7 +362,7 @@ if (empty($reshook))
|
|||
else
|
||||
{
|
||||
$db->rollback();
|
||||
dol_print_error($object->db);
|
||||
dol_print_error($db,$object->error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue