give handler function control over errors

This commit is contained in:
Nico 2020-11-24 08:49:20 +00:00
parent 5fdde7b057
commit 9e3aee1da6
1 changed files with 0 additions and 1 deletions

View File

@ -51,7 +51,6 @@ func handle(c net.Conn, fn HandlerFunc) {
}
err = fn(c, header)
if err != nil {
c.Write([]byte("42" + err.Error()))
log.Print(err.Error())
return
}