fix: Show QEMU errors on unexpected exit (#1280)

This commit is contained in:
Kroese
2026-07-17 05:54:04 +02:00
committed by GitHub
parent e81c509208
commit 797411ae7f
+13 -1
View File
@@ -101,6 +101,12 @@ cleanupHelpers() {
finish() {
local reason=$1
local failed=0
if [ ! -f "$QEMU_END" ] && (( reason != 0 )); then
failed=1
fi
touch "$QEMU_END"
forceKillQemu "$reason"
@@ -110,7 +116,13 @@ finish() {
warn "Timed out while waiting for $(app) to exit!"
fi
(( reason != 1 )) && echo && echo " Shutdown completed!"
echo
if (( failed == 0 )); then
echo " Shutdown completed!"
else
error "QEMU exited unexpectedly!"
fi
exit "$reason"
}