~yerinalexey/gtranslate

ref: b67c4398fcbf66760c38d3f83e180a1c4f1fe426 gtranslate/utils.go -rw-r--r-- 162 bytes
b67c4398Alexey Yerin web: add a nicer error page 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
package main

import (
	"fmt"
	"net/http"
)

func writeError(w http.ResponseWriter, status int, err interface{}) {
	w.WriteHeader(status)
	fmt.Fprintln(w, err)
}