[GH-ISSUE #443] Unreturned errors #114

Closed
opened 2026-02-28 00:40:37 +03:00 by kerem · 2 comments
Owner

Originally created by @jaitaiwan on GitHub (Jul 25, 2025).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/443

Hi Folks,

Looking through some of the files I see places like https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/client.go#L291 where errors are not logged and also not returned.

Is there a reason for that? If so would it be wise to document within the functions why we don't return?

Originally created by @jaitaiwan on GitHub (Jul 25, 2025). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/443 Hi Folks, Looking through some of the files I see places like https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/client.go#L291 where errors are not logged and also not returned. Is there a reason for that? If so would it be wise to document within the functions why we don't return?
kerem closed this issue 2026-02-28 00:40:38 +03:00
Author
Owner

@Tinyblargon commented on GitHub (Jul 25, 2025):

@jaitaiwan They are implicitly returned. When there are no variables in a return call, the output variables will be used.

<!-- gh-comment-id:3116657015 --> @Tinyblargon commented on GitHub (Jul 25, 2025): @jaitaiwan They are implicitly returned. When there are no variables in a `return` call, the output variables will be used.
Author
Owner

@jaitaiwan commented on GitHub (Jul 25, 2025):

Oh I'm so sorry I completely missed the named return types.

<!-- gh-comment-id:3116677593 --> @jaitaiwan commented on GitHub (Jul 25, 2025): Oh I'm so sorry I completely missed the named return types.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#114
No description provided.