coreos / coreos/go-systemd

login1 command wrappers do not return the call error

Open
#326 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/breaking-api
Dominant language
Go
Stars
2.7k
Forks
338
PR merge metrics
No merged PRs in 30d

Description

The pattern used in other packages here is something like return c.object.Call(...).Err but the wrapper methods in login1 just swallow any errors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the login1 package and compare its wrapper methods with the other packages' pattern of returning c.object.Call(...).Err. Update the wrappers so call errors are returned rather than swallowed, and verify that each affected method propagates the call error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.