From fcb4ee935ef97ca5c79c7433b2be2709fc62e87f Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Tue, 31 Jul 2018 10:34:40 -0400 Subject: gob register AppError (#9182) This allows plugin hooks to return the result of calling the API as an `error`. --- plugin/client_rpc.go | 1 + 1 file changed, 1 insertion(+) (limited to 'plugin') diff --git a/plugin/client_rpc.go b/plugin/client_rpc.go index 8e082ff80..dde4c5f2e 100644 --- a/plugin/client_rpc.go +++ b/plugin/client_rpc.go @@ -67,6 +67,7 @@ func init() { gob.Register([]*model.SlackAttachment{}) gob.Register([]interface{}{}) gob.Register(map[string]interface{}{}) + gob.Register(&model.AppError{}) } // These enforce compile time checks to make sure types implement the interface -- cgit v1.2.3-1-g7c22