summaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/errors.go b/errors.go
new file mode 100644
index 0000000..819a2a9
--- /dev/null
+++ b/errors.go
@@ -0,0 +1,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)
+ }
+} \ No newline at end of file