summaryrefslogtreecommitdiff
path: root/system/db/content.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-08 23:22:25 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-08 23:22:25 -0800
commitd5b31987a05df02cf4129e8603f2304b191e0834 (patch)
treeb750f41da25621e46a7ed8741319ec07577f5935 /system/db/content.go
parentad96d5fa100615ada7ae8f06e75088f9297122fd (diff)
adding error type rather than string as exported var from item
Diffstat (limited to 'system/db/content.go')
-rw-r--r--system/db/content.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/db/content.go b/system/db/content.go
index dc4477f..f4671de 100644
--- a/system/db/content.go
+++ b/system/db/content.go
@@ -485,7 +485,7 @@ func postToJSON(ns string, data url.Values) ([]byte, error) {
// find the content type and decode values into it
t, ok := item.Types[ns]
if !ok {
- return nil, fmt.Errorf(item.ErrTypeNotRegistered, ns)
+ return nil, fmt.Errorf(item.ErrTypeNotRegistered.Error(), ns)
}
post := t()