This commit is contained in:
hant 2025-04-19 17:52:55 +08:00
parent 1a285481dc
commit 69642477be

View File

@ -147,7 +147,8 @@ class Aftersale extends Backend
Db::commit();
} catch (ValidateException|PDOException|Exception $e) {
Db::rollback();
$this->error($e->getMessage());
throw $e;
// $this->error($e->getMessage());
}
if ($result === false) {
$this->error(__('No rows were inserted'));