summaryrefslogtreecommitdiff
path: root/system/api/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/api/update.go')
-rw-r--r--system/api/update.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/api/update.go b/system/api/update.go
index 93904dc..a669a9a 100644
--- a/system/api/update.go
+++ b/system/api/update.go
@@ -56,6 +56,7 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) {
}
if user.IsValid(req) == false {
+ log.Println("[Update] invalid user.")
res.WriteHeader(http.StatusBadRequest)
return
}
@@ -64,7 +65,7 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) {
ext, ok := post.(Updateable)
if !ok {
- log.Println("[Update] rejected non-replaceable type:", t, "from:", req.RemoteAddr)
+ log.Println("[Update] rejected non-updateable type:", t, "from:", req.RemoteAddr)
res.WriteHeader(http.StatusBadRequest)
return
}