diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-08 23:22:25 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-08 23:22:25 -0800 |
commit | d5b31987a05df02cf4129e8603f2304b191e0834 (patch) | |
tree | b750f41da25621e46a7ed8741319ec07577f5935 /system/admin/handlers.go | |
parent | ad96d5fa100615ada7ae8f06e75088f9297122fd (diff) |
adding error type rather than string as exported var from item
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index e7dabfe..c5c4a4c 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -1306,7 +1306,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) { contentType, ok := item.Types[t] if !ok { - fmt.Fprintf(res, item.ErrTypeNotRegistered, t) + fmt.Fprintf(res, item.ErrTypeNotRegistered.Error(), t) return } post := contentType() |