summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-31 01:33:13 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-31 01:33:13 -0400
commit686b6db06566fe151b627d238e47705109181b31 (patch)
tree259dd9da4e57b452649ccdee9399a08d7b191db5
parentd8e4c8a098539a81307900bf188fa6fe628e43b0 (diff)
downloadgetwtxt-686b6db06566fe151b627d238e47705109181b31.tar.gz
allowing some errors in POST
-rw-r--r--post.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/post.go b/post.go
index d6da21f..ae1ef26 100644
--- a/post.go
+++ b/post.go
@@ -15,7 +15,7 @@ import (
 // registry before adding each user to the local cache.
 func apiPostUser(w http.ResponseWriter, r *http.Request) {
 	if err := r.ParseForm(); err != nil {
-		log400(w, r, err.Error())
+		log400(w, r, "Error Parsing Values: "+err.Error())
 		return
 	}
 
@@ -49,8 +49,7 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 
 	statuses, err := registry.ParseUserTwtxt(out, nick, urls)
 	if err != nil {
-		log400(w, r, "Error Parsing twtxt Data: "+err.Error())
-		return
+		log.Printf("Error Parsing User Data: %v\n", err)
 	}
 
 	if err := twtxtCache.AddUser(nick, urls, uip, statuses); err != nil {