node/pkg/version: panic on empty version

Change-Id: I72207193e459122596f9731b36f45f619ccdad6c
This commit is contained in:
Leo 2021-07-31 17:15:51 +02:00
parent fddbb0c2a4
commit 08a8f390ca
1 changed files with 3 additions and 0 deletions

View File

@ -4,5 +4,8 @@ package version
var version = "development"
func Version() string {
if version == "" {
panic("binary compiled with empty version")
}
return version
}