9 lines
173 B
Go
9 lines
173 B
Go
|
package main
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
func handlerError(err error, w http.ResponseWriter) {
|
||
|
w.WriteHeader(http.StatusInternalServerError)
|
||
|
_, _ = w.Write([]byte(err.Error()))
|
||
|
}
|