Skip to content

Commit

Permalink
Fix field name in appservice HTTP error response struct
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 16, 2021
1 parent 3ff1d9c commit 97cbadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appservice/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func Respond(w http.ResponseWriter, data interface{}) error {
type Error struct {
HTTPStatus int `json:"-"`
ErrorCode ErrorCode `json:"errcode"`
Message string `json:"message"`
Message string `json:"error"`
}

func (err Error) Write(w http.ResponseWriter) {
Expand Down

0 comments on commit 97cbadb

Please sign in to comment.