Skip to content

Commit

Permalink
Merge branch 'master' into fix-telemetry-hook-race
Browse files Browse the repository at this point in the history
* master:
  bump version to 1.2.1 (#255)
  print response if fail to unmarshal error (#254)
  • Loading branch information
trilopin committed Apr 27, 2023
2 parents 1d26a07 + c542892 commit a40c300
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Microsoft Calendar Integration",
"homepage_url": "https://mattermost.gitbook.io/plugin-mscalendar",
"support_url": "https://github.com/mattermost/mattermost-plugin-mscalendar/issues",
"release_notes_url": "https://github.com/mattermost/mattermost-plugin-mscalendar/releases/tag/v1.2.0",
"release_notes_url": "https://github.com/mattermost/mattermost-plugin-mscalendar/releases/tag/v1.2.1",
"icon_path": "assets/profile.svg",
"version": "1.2.0",
"version": "1.2.1",
"min_server_version": "6.3.0",
"server": {
"executables": {
Expand Down
2 changes: 1 addition & 1 deletion server/manifest.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions server/remote/msgraph/call.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ func (c *client) call(method, path, contentType string, inBody io.Reader, out in
errResp := msgraph.ErrorResponse{Response: resp}
err = json.Unmarshal(responseData, &errResp)
if err != nil {
return responseData, errors.WithMessagef(err, "status: %s", resp.Status)
}
if err != nil {
return responseData, err
return responseData, errors.WithMessagef(err, "status: %s. response: %s", resp.Status, string(responseData))
}

return responseData, &errResp
}

0 comments on commit a40c300

Please sign in to comment.