gob register AppError (#9182)

This allows plugin hooks to return the result of calling the API as an
`error`.
This commit is contained in:
Jesse Hallam
2018-07-31 10:34:40 -04:00
committed by GitHub
parent 867416b0e6
commit fcb4ee935e

View File

@@ -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