From 78a8bbd5f787695e3d4a25d3bb502aeac5f91fcd Mon Sep 17 00:00:00 2001 From: "James W. Brinkerhoff" Date: Fri, 12 Apr 2024 13:06:04 -0400 Subject: [PATCH] Handle invalid mode specification --- examples/bios/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/bios/main.go b/examples/bios/main.go index 4635b568..16def4aa 100644 --- a/examples/bios/main.go +++ b/examples/bios/main.go @@ -91,5 +91,8 @@ func main() { if err != nil { l.Error(err) } + default: + l.Fatal("Unknown mode: " + *mode) + } }