From d092ebd47aa0f990a6be5168eb4ded9be5c19d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Izaguirre?= Date: Mon, 2 Nov 2026 17:19:22 +0100 Subject: [PATCH] Error when missing configuration --- frontend/console/main.go | 2 ++ frontend/headless/main.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/frontend/console/main.go b/frontend/console/main.go index b9d62426..922e01f4 100644 --- a/frontend/console/main.go +++ b/frontend/console/main.go @@ -13,7 +13,9 @@ import ( func main() { a, err := apple2.CreateConfiguredApple() if err != nil { + // Nothing to run without a machine fmt.Printf("Error: %v\n", err) + os.Exit(1) } fe := &ansiConsoleFrontend{} diff --git a/frontend/headless/main.go b/frontend/headless/main.go index 0b173ab9..0ecad444 100644 --- a/frontend/headless/main.go +++ b/frontend/headless/main.go @@ -16,7 +16,9 @@ import ( func main() { a, err := izapple2.CreateConfiguredApple() if err != nil { + // Nothing to run without a machine fmt.Printf("Error: %v\n", err) + os.Exit(1) } fe := &headLessFrontend{} fe.keyChannel = make(chan uint8, 200)