1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Fixed a typo

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-04-19 19:54:17 -07:00
parent 8a2f19fe7c
commit 064466bcde
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ func New() (e *Echo) {
e.HTTPErrorHandler(func(err error, c *Context) { e.HTTPErrorHandler(func(err error, c *Context) {
if err != nil { if err != nil {
// TODO: Warning // TODO: Warning
log.Printf("echo: %s", color.Yellow("HTTP error handler not registered")) log.Printf("echo: %s", color.Yellow("http error handler not registered"))
http.Error(c.Response, err.Error(), http.StatusInternalServerError) http.Error(c.Response, err.Error(), http.StatusInternalServerError)
} }
}) })

View File

@ -23,7 +23,7 @@ func (r *response) Header() http.Header {
func (r *response) WriteHeader(n int) { func (r *response) WriteHeader(n int) {
if r.committed { if r.committed {
// TODO: Warning // TODO: Warning
log.Printf("echo: %s", color.Yellow("echo: response already committed")) log.Printf("echo: %s", color.Yellow("response already committed"))
return return
} }
r.status = n r.status = n