diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-31 01:33:13 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-31 01:33:13 -0400 |
commit | 686b6db06566fe151b627d238e47705109181b31 (patch) | |
tree | 259dd9da4e57b452649ccdee9399a08d7b191db5 /post.go | |
parent | d8e4c8a098539a81307900bf188fa6fe628e43b0 (diff) | |
download | getwtxt-686b6db06566fe151b627d238e47705109181b31.tar.gz |
allowing some errors in POST
Diffstat (limited to 'post.go')
-rw-r--r-- | post.go | 5 |
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 { |