mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-26 07:55:50 +03:00
[PR #22] [MERGED] Return errors from ResponseJSON #159
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/22
Author: @carlpett
Created: 3/16/2019
Status: ✅ Merged
Merged: 4/10/2019
Merged by: @ggongaware
Base:
master← Head:return-request-errors📝 Commits (1)
4229ea9Return errors from ResponseJSON📊 Changes
2 files changed (+66 additions, -37 deletions)
View changed files
📝
proxmox/client.go(+44 -21)📝
proxmox/session.go(+22 -16)📄 Description
This PR changes
ResponseJSONto return errors, instead of dropping them, which caused me a bit of confusion during development.It also returns the response from
session.Doeven if the response code is not 2xx, since the response body usually contains the actual error.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.