Return any errors when creating tls config (#5541)

This commit is contained in:
Daniel Nelson 2019-03-06 17:37:44 -08:00 committed by GitHub
parent dd67144660
commit c3e793bb4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ func (sl *SocketListener) Start(acc telegraf.Accumulator) error {
tlsCfg, err := sl.ServerConfig.TLSConfig()
if err != nil {
return nil
return err
}
if tlsCfg == nil {