Move FailOnError to correct place.

This commit is contained in:
Jacob Hoffman-Andrews 2015-11-26 11:30:18 -08:00
parent 2e522b86a3
commit c5de989796
1 changed files with 1 additions and 1 deletions

View File

@ -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))