Make error strings lower case and without punctuation, to be consistent with Golang coding standards

This commit is contained in:
Ola Bini 2019-12-21 23:07:03 +00:00
parent 99d5ad7857
commit 74040ab0af
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F
2 changed files with 3 additions and 3 deletions

View file

@ -387,12 +387,12 @@ func populateChannelLinkInfo(server *Server, db *sql.DB) (err error) {
channel, exists := server.Channels[ChannelID]
if !exists {
return errors.New("Attempt to perform link operation on non-existant channel.")
return errors.New("attempt to perform link operation on non-existant channel")
}
other, exists := server.Channels[LinkID]
if !exists {
return errors.New("Attempt to perform link operation on non-existant channel.")
return errors.New("attempt to perform link operation on non-existant channel")
}
server.LinkChannels(channel, other)

View file

@ -252,7 +252,7 @@ func (server *Server) handleIncomingClient(conn net.Conn) (err error) {
client := new(Client)
addr := conn.RemoteAddr()
if addr == nil {
err = errors.New("Unable to extract address for client.")
err = errors.New("unable to extract address for client")
return
}