node/pkg/version: panic on empty version
Change-Id: I72207193e459122596f9731b36f45f619ccdad6c
This commit is contained in:
parent
fddbb0c2a4
commit
08a8f390ca
|
@ -4,5 +4,8 @@ package version
|
|||
var version = "development"
|
||||
|
||||
func Version() string {
|
||||
if version == "" {
|
||||
panic("binary compiled with empty version")
|
||||
}
|
||||
return version
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue