Skip to content

A live bird collage card for your Home Assistant dashboard.

Add line break between shell and sqlite error outputs (#60)

Alexandre14eb89f38d90
diff --git a/scripts/play.php b/scripts/play.php
index a7dcc68a..d5cfdf03 100644
--- a/scripts/play.php
+++ b/scripts/play.php
@@ -28,7 +28,7 @@ if(isset($_GET['deletefile'])) {
if (!exec("sudo rm $file_pointer 2>&1 && sudo rm $file_pointer.png 2>&1", $output)) {
echo "OK";
} else {
- echo "Error - file deletion failed : " . implode(", ", $output);
+ echo "Error - file deletion failed : " . implode(", ", $output) . "<br>";
}
$result1 = $statement1->execute();
if ($result1 === false || $db_writable->changes() === 0) {