Browse Source

Ensure all error messages are not capitalized.

Coda Hale 12 years ago
parent
commit
62d9a012fa
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      bind/bind.go

+ 6
- 5
bind/bind.go View File

@ -67,7 +67,7 @@ func listenTo(bind string) (net.Listener, error) {
} else if strings.HasPrefix(bind, "fd@") {
fd, err := strconv.Atoi(bind[3:])
if err != nil {
return nil, fmt.Errorf("Error while parsing fd %v: %v",
return nil, fmt.Errorf("error while parsing fd %v: %v",
bind, err)
}
f := os.NewFile(uintptr(fd), bind)
@ -76,16 +76,17 @@ func listenTo(bind string) (net.Listener, error) {
fd, err := strconv.Atoi(bind[8:])
if err != nil {
return nil, fmt.Errorf(
"Error while parsing einhorn %v: %v", bind, err)
"error while parsing einhorn %v: %v", bind, err)
}
return einhornBind(fd)
}
return nil, fmt.Errorf("Error while parsing bind arg %v", bind)
return nil, fmt.Errorf("error while parsing bind arg %v", bind)
}
// Parse and bind to the specified address. If Socket encounters an error while
// parsing or binding to the given socket it will exit by calling log.Fatal.
// Socket parses and binds to the specified address. If Socket encounters an
// error while parsing or binding to the given socket it will exit by calling
// log.Fatal.
func Socket(bind string) net.Listener {
l, err := listenTo(bind)
if err != nil {


Loading…
Cancel
Save