summaryrefslogtreecommitdiff
path: root/errors.go
blob: 819a2a9aed365f1a0c04d8fc173fe2dc9ac1a843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import (
	"fmt"
	"net/http"
)

//Fine for now, possibly want to do more with errors
func check(err error, w http.ResponseWriter) {
	if err != nil {
		fmt.Println(err)
		fmt.Fprintf(w, "%s", err)
	}
}