fix typo, added log info
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-04-20 17:26:06 +02:00
parent af826ff457
commit 10d070dd10
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (u *User) RequestNewCert(cfg *config.Config, domainnames *[]string) (certs
}
if !has {
err = fmt.Errorf("supplied domain not in allow domains")
err = fmt.Errorf("supplied domain not in allowed domains")
return
}

View File

@ -34,6 +34,7 @@ func RunServer(cfg *config.Config) (err error) {
var result = make(map[string]EntryResponse)
err = c.Bind(&request)
if err != nil {
log.Println(err)
return c.JSON(http.StatusInternalServerError, "error parsing request")
}