Explorar el Código

Simpler Error text

Alejandro Rosales hace 1 año
padre
commit
a0301899e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -24,5 +24,5 @@ try {
     echo "Current date and time: {$result['now']}";
 } catch (PDOException $e) {
     // Manejo de errores
-    echo "Error: " . $e->getMessage();
+    echo "Error: {$e->getMessage()}";
 }