summaryrefslogtreecommitdiff
path: root/version.go
diff options
context:
space:
mode:
Diffstat (limited to 'version.go')
-rw-r--r--version.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/version.go b/version.go
index c3cc266..94ee141 100644
--- a/version.go
+++ b/version.go
@@ -1,13 +1,13 @@
package main
-import "fmt"
+import (
+ "log"
+)
var gitDescribe string
-func version() (string, error) {
+func init() {
if gitDescribe == "" {
- return "", fmt.Errorf("No version information available")
+ log.Fatal("No version information passed to this via build flags")
}
-
- return gitDescribe, nil
}