From d5b31987a05df02cf4129e8603f2304b191e0834 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Sun, 8 Jan 2017 23:22:25 -0800 Subject: adding error type rather than string as exported var from item --- system/db/content.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/db') 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() -- cgit v1.2.3