all repos — homestead @ 030b21d454c51121f56b1da423c592ef4e6f3618

Code for my website

http: reduce error interface size

Alan Pearce
commit

030b21d454c51121f56b1da423c592ef4e6f3618

parent

b9efca3f3332bbb0ef0bafbafe5ac58561893507

1 file changed, 0 insertions(+), 5 deletions(-)

changed files
M shared/http/error.goshared/http/error.go
@@ -10,7 +10,6 @@ error
StatusCode() int Message() string Unwrap() error - WriteHTTP(w http.ResponseWriter) } type httpError struct {
@@ -41,10 +40,6 @@ }
func (e *httpError) Unwrap() error { return e.cause -} - -func (e *httpError) WriteHTTP(w http.ResponseWriter) { - http.Error(w, e.message, e.code) } func NewError(code int, message string, cause error) Error {