Skip to content

Commit

Permalink
routing: capitalize first letter of new error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Apr 12, 2017
1 parent 4924c39 commit 41a5414
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routing/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {
if exists && lastUpdate.After(msg.LastUpdate) ||
lastUpdate.Equal(msg.LastUpdate) {

return newErrf(ErrOutdated, "ignoring outdated "+
return newErrf(ErrOutdated, "Ignoring outdated "+
"announcement for %x", msg.PubKey.SerializeCompressed())
}

Expand All @@ -547,7 +547,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {

} else if exists {

return newErrf(ErrIgnored, "ignoring msg for known "+
return newErrf(ErrIgnored, "Ignoring msg for known "+
"chan_id=%v", msg.ChannelID)
}

Expand Down Expand Up @@ -629,7 +629,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {
case 0:
if edge1Timestamp.After(msg.LastUpdate) ||
edge1Timestamp.Equal(msg.LastUpdate) {
return newErrf(ErrIgnored, "ignoring announcement "+
return newErrf(ErrIgnored, "Ignoring announcement "+
"(flags=%v) for known chan_id=%v", msg.Flags,
msg.ChannelID)

Expand All @@ -641,7 +641,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error {
if edge2Timestamp.After(msg.LastUpdate) ||
edge2Timestamp.Equal(msg.LastUpdate) {

return newErrf(ErrIgnored, "ignoring announcement "+
return newErrf(ErrIgnored, "Ignoring announcement "+
"(flags=%v) for known chan_id=%v", msg.Flags,
msg.ChannelID)
}
Expand Down

0 comments on commit 41a5414

Please sign in to comment.