This commit is contained in:
Joachim Hill-Grannec 2016-04-19 13:32:06 -07:00
parent d982f73f8e
commit c250926460

View file

@ -48,19 +48,19 @@ func Load(config string) *BitbucketServer{
bitbucketserver.URL = url_.String()
bitbucketserver.GitUserName = params.Get("git_username")
if bitbucketserver.GitUserName == "" {
log.FatalLevel("Must have a git_username")
log.Fatalln("Must have a git_username")
}
bitbucketserver.GitPassword = params.Get("git_password")
if bitbucketserver.GitPassword == "" {
log.FatalLevel("Must have a git_password")
log.Fatalln("Must have a git_password")
}
bitbucketserver.ConsumerKey = params.Get("consumer_key")
if bitbucketserver.ConsumerKey == "" {
log.FatalLevel("Must have a consumer_key")
log.Fatalln("Must have a consumer_key")
}
bitbucketserver.ConsumerRSA = params.Get("consumer_rsa")
if bitbucketserver.ConsumerRSA == "" {
log.FatalLevel("Must have a consumer_rsa")
log.Fatalln("Must have a consumer_rsa")
}
bitbucketserver.Open, _ = strconv.ParseBool(params.Get("open"))