Correct spelling errors in error messages

Fixed spelling errors in error messages on server.go and listener.go files. The word "initalize" has been corrected to "initialize" in both files.
This commit is contained in:
Winni Neessen 2023-12-22 15:31:44 +01:00
parent 0a3f8780c5
commit c9f7726473
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ func NewListener(c *Config) (net.Listener, error) {
return nil, fmt.Errorf("failed to initialize listener: unknown listener type in config")
}
if lerr != nil {
return nil, fmt.Errorf("failed to initalize listener: %w", lerr)
return nil, fmt.Errorf("failed to initialize listener: %w", lerr)
}
return l, nil
}

View file

@ -57,7 +57,7 @@ func (s *Server) Run() error {
}
p, err := parsesyslog.New(s.conf.internal.ParserType)
if err != nil {
return fmt.Errorf("failed to initalize syslog parser: %w", err)
return fmt.Errorf("failed to initialize syslog parser: %w", err)
}
s.parser = p
return s.RunWithListener(l)