Move FailOnError to correct place.
This commit is contained in:
parent
2e522b86a3
commit
c5de989796
|
|
@ -157,9 +157,9 @@ func main() {
|
|||
cmd.FailOnError(err, "Reading DB config")
|
||||
if dbConnect == "" {
|
||||
dbConnect = config.Source
|
||||
cmd.FailOnError(err, fmt.Sprintf("Source was not a URL: %s", config.Source))
|
||||
}
|
||||
url, err := url.Parse(dbConnect)
|
||||
cmd.FailOnError(err, fmt.Sprintf("Source was not a URL: %s", config.Source))
|
||||
|
||||
if url.Scheme == "mysql+tcp" {
|
||||
auditlogger.Info(fmt.Sprintf("Loading OCSP Database for CA Cert: %s", c.Common.IssuerCert))
|
||||
|
|
|
|||
Loading…
Reference in New Issue