mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-06-21 17:12:47 +02:00
12 lines
198 B
Go
12 lines
198 B
Go
package api
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
)
|
|
|
|
func httpError(w http.ResponseWriter, r *http.Request, error string, code int) {
|
|
log.Printf("%s: %s\n", r.URL.Path, error)
|
|
http.Error(w, error, code)
|
|
}
|