summary refs log tree commit diff stats
path: root/post.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-22 15:02:12 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-22 15:02:12 -0400
commitbce52652ceb54b325ac72cc9a173655ec0a80756 (patch)
tree3d4f44c1dd41d0f7301e9ec1e9ef510ef7b14ab5 /post.go
parent8e3bef29c6127b9ff33bb8d6f0481780f8a3568f (diff)
downloadgetwtxt-bce52652ceb54b325ac72cc9a173655ec0a80756.tar.gz
tweaked error handling
Diffstat (limited to 'post.go')
-rw-r--r--post.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/post.go b/post.go
index 4078cf6..103c254 100644
--- a/post.go
+++ b/post.go
@@ -2,6 +2,7 @@ package main
 
 import (
 	"fmt"
+	"log"
 	"net/http"
 
 	"github.com/getwtxt/registry"
@@ -58,5 +59,8 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 	}
 
 	log200(r)
-	_, _ = w.Write([]byte(fmt.Sprintf("200 OK\n")))
+	_, err = w.Write([]byte(fmt.Sprintf("200 OK\n")))
+	if err != nil {
+		log.Printf("%v\n", err)
+	}
 }
t; 2015-02-26 23:23:15 +0000 committer James Booth <boothj5@gmail.com> 2015-02-26 23:23:15 +0000 Updated themes for release' href='/danisanti/profani-tty/commit/themes/mono?id=30b5f112fd81890411d6fe52c1f442f4433e0d01'>30b5f112 ^
71679a31 ^

20fa9632 ^


20fa9632 ^

2f82f50a ^
86c1c388 ^
1a3dc91e ^
20fa9632 ^

20fa9632 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

b21edfaa ^
cd2458c0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78