Subir archivos a "clases"

This commit is contained in:
2026-09-24 12:52:32 +02:00
parent 87fdf7285f
commit 63e9c3ceab
3 changed files with 18 additions and 18 deletions
+4 -4
View File
@@ -35,7 +35,7 @@ class Categoria{
}catch(PDOException $error){
$respuesta = [
'error' => 'Ocurrió un error al guardar la categoría.',
'error_tecnico' => $error
'error_tecnico' => $error->getMessage()
];
$conexion = null;
@@ -64,7 +64,7 @@ class Categoria{
}catch(PDOException $error){
$respuesta = [
'error' => 'Ocurrió un error al obtener el listado de categorías.',
'error_tecnico' => $error
'error_tecnico' => $error->getMessage()
];
$conexion = null;
@@ -94,7 +94,7 @@ class Categoria{
}catch(PDOException $error){
$respuesta = [
'error' => 'Ocurrió un error al buscar la categoría.',
'error_tecnico' => $error
'error_tecnico' => $error->getMessage()
];
$conexion = null;
@@ -134,7 +134,7 @@ class Categoria{
}catch(PDOException $error){
$respuesta = [
'error' => 'Ocurrió un error al eliminar la categoría.',
'error_tecnico' => $error
'error_tecnico' => $error->getMessage()
];
$conexion = null;