diff options
Diffstat (limited to 'spartan/serve.go')
-rw-r--r-- | spartan/serve.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spartan/serve.go b/spartan/serve.go index 9403a15..354c1e1 100644 --- a/spartan/serve.go +++ b/spartan/serve.go @@ -58,13 +58,13 @@ func (ss *spartanServer) handleConn(conn net.Conn) { if r := recover(); r != nil { err := fmt.Errorf("%s", r) _ = ss.LogError("msg", "panic in handler", "err", err) - rdr := NewResponseReader(ServerError(errors.New("Server error"))) + rdr := NewResponseReader(ServerError(errors.New("server error"))) _, _ = io.Copy(conn, rdr) } }() response = ss.handler.Handle(ss.Ctx, request) if response == nil { - response = ClientError(errors.New("Resource does not exist.")) + response = ClientError(errors.New("resource does not exist")) } } |