summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorJesse Hallam <jesse.hallam@gmail.com>2018-07-31 10:34:40 -0400
committerGitHub <noreply@github.com>2018-07-31 10:34:40 -0400
commitfcb4ee935ef97ca5c79c7433b2be2709fc62e87f (patch)
treed3ef3d1b268a9693aa6ac8399efc15d0952a7ba6 /plugin
parent867416b0e6281059d79e100f3019fe2a2f4c2753 (diff)
downloadchat-fcb4ee935ef97ca5c79c7433b2be2709fc62e87f.tar.gz
chat-fcb4ee935ef97ca5c79c7433b2be2709fc62e87f.tar.bz2
chat-fcb4ee935ef97ca5c79c7433b2be2709fc62e87f.zip
gob register AppError (#9182)
This allows plugin hooks to return the result of calling the API as an `error`.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/client_rpc.go1
1 files changed, 1 insertions, 0 deletions
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