FIX: Manejo de Errores en Ventas
This commit is contained in:
@ -217,7 +217,8 @@ class Ventas extends Controller
|
||||
$this->saveRedis($redisService, "venta:{$venta->id}", $venta);
|
||||
$output['venta_id'] = $venta->id;
|
||||
$output['status'] = true;
|
||||
} catch (EmptyResult | PDOException $exception) {
|
||||
} catch (Create | Update $exception) {
|
||||
$this->logger->error($exception->getMessage());
|
||||
$output['errors'] = [
|
||||
'code' => $exception->getCode(),
|
||||
'message' => $exception->getMessage(),
|
||||
|
Reference in New Issue
Block a user