diff --git a/clases/ClaseCategoria.php b/clases/ClaseCategoria.php index 1b17c6d..8890ec6 100644 --- a/clases/ClaseCategoria.php +++ b/clases/ClaseCategoria.php @@ -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; diff --git a/clases/ClaseEquipo.php b/clases/ClaseEquipo.php index 62a84b1..2b373ed 100644 --- a/clases/ClaseEquipo.php +++ b/clases/ClaseEquipo.php @@ -35,7 +35,7 @@ class Equipo{ }catch(PDOException $error){ $respuesta = [ 'error' => 'Ocurrió un error al guardar el equipo.', - 'error_tecnico' => $error + 'error_tecnico' => $error->getMessage() ]; $conexion = null; @@ -64,7 +64,7 @@ class Equipo{ }catch(PDOException $error){ $respuesta = [ 'error' => 'Ocurrió un error al obtener el listado de equipos.', - 'error_tecnico' => $error + 'error_tecnico' => $error->getMessage() ]; $conexion = null; @@ -94,7 +94,7 @@ class Equipo{ }catch(PDOException $error){ $respuesta = [ 'error' => 'Ocurrió un error al buscar el equipo.', - 'error_tecnico' => $error + 'error_tecnico' => $error->getMessage() ]; $conexion = null; diff --git a/clases/ClasePartida.php b/clases/ClasePartida.php index 16f4dae..b681685 100644 --- a/clases/ClasePartida.php +++ b/clases/ClasePartida.php @@ -41,7 +41,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al guardar la partida.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -59,7 +59,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al obtener el listado.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -82,7 +82,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al buscar la partida.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -112,7 +112,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al editar la partida.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -137,7 +137,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "No se pudo eliminar la partida.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -169,7 +169,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al recuperar las preguntas de la partida.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -200,7 +200,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al asignar la pregunta.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -224,7 +224,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al contar las preguntas.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -252,7 +252,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al contar las respuestas del usuario.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -296,7 +296,7 @@ class Partida } catch (PDOException $error) { return [ "error" => "Ocurrió un error al recuperar las partidas del usuario.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } } @@ -328,7 +328,7 @@ class Partida return [ "error" => "Ocurrió un error al comprobar la pregunta.", - "error_tecnico" => $error + 'error_tecnico' => $error->getMessage() ]; } }