summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Keuning <kkeuning@gmail.com>2017-03-05 22:35:41 -0600
committerKevin Keuning <kkeuning@gmail.com>2017-03-05 22:35:41 -0600
commit986a2130a59b25fdc7730b3a974d5f5338bd7cb1 (patch)
treefc39d65aaeadad2acb1ddb96cae4e525201108bb
parent92a96fe470b39ae5c16f66fce8023f04ad3a37ae (diff)
updated logging
-rw-r--r--system/api/update.go2
-rw-r--r--system/db/content.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/system/api/update.go b/system/api/update.go
index 507d3af..da79330 100644
--- a/system/api/update.go
+++ b/system/api/update.go
@@ -162,7 +162,7 @@ func updateContentHandler(res http.ResponseWriter, req *http.Request) {
_, err = db.SetContent(t+spec+":"+id, req.PostForm)
if err != nil {
- log.Println("[Update] error calling UpdateContent:", err)
+ log.Println("[Update] error calling SetContent:", err)
res.WriteHeader(http.StatusInternalServerError)
return
}
diff --git a/system/db/content.go b/system/db/content.go
index 4517fbe..dd93c60 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -112,8 +112,8 @@ func mergeData(ns string, data url.Values, existingContent []byte) ([]byte, erro
var j []byte
t, ok := item.Types[ns]
if !ok {
+ log.Println("Type not found from namespace:", ns)
return j, errors.New("Invalid type.")
- // handle
}
// Unmarsal the existing values