Skip to content

Commit

Permalink
Improve messages for unhandled os/arch
Browse files Browse the repository at this point in the history
  • Loading branch information
justinas committed Mar 28, 2022
1 parent 85a0525 commit d3aff9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dronegen/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit d3aff9d

Please sign in to comment.