aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/reboot.php1
-rw-r--r--scripts/status.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/reboot.php b/scripts/reboot.php
index a7be1be..cdc3710 100644
--- a/scripts/reboot.php
+++ b/scripts/reboot.php
@@ -19,5 +19,6 @@ try {
echo $resp->getStatus() . ' ' . $resp->getReasonPhrase() . "\n";
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage() . "\n";
+ exit(1);
}
?> \ No newline at end of file
diff --git a/scripts/status.php b/scripts/status.php
index 5384d91..9f94371 100644
--- a/scripts/status.php
+++ b/scripts/status.php
@@ -20,5 +20,6 @@ try {
}
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage() . "\n";
+ exit(1);
}
?> \ No newline at end of file