make MatrixError implement error interface

This commit is contained in:
Krombel 2018-08-06 16:54:16 +02:00
parent 0b5ae4692e
commit 68f8ab24bd

View file

@ -28,7 +28,7 @@ type MatrixError struct {
Err string `json:"error"`
}
func (e *MatrixError) Error() string {
func (e MatrixError) Error() string {
return fmt.Sprintf("%s: %s", e.ErrCode, e.Err)
}