From d3aff9dcf652c20186b535dbb3d15c1983b5b39a Mon Sep 17 00:00:00 2001 From: Justinas Stankevicius Date: Mon, 28 Mar 2022 23:39:27 +0300 Subject: [PATCH] Improve messages for unhandled os/arch --- dronegen/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dronegen/common.go b/dronegen/common.go index 90a86e8941b29..9e04e3d8e37ce 100644 --- a/dronegen/common.go +++ b/dronegen/common.go @@ -108,7 +108,7 @@ func (b *buildType) Description(packageType string, extraQualifications ...strin case "windows": os = "Windows" default: - panic("unhandled OS") + panic(fmt.Sprintf("unhandled OS: %s", b.os)) } switch b.arch { @@ -127,7 +127,7 @@ func (b *buildType) Description(packageType string, extraQualifications ...strin bitness = 32 default: - panic("unhandled arch") + panic(fmt.Sprintf("unhandled arch: %s", b.arch)) } if b.centos7 {