diff options
-rw-r--r-- | system/api/update.go | 2 | ||||
-rw-r--r-- | system/db/content.go | 2 |
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 |