Skip to content

credentials/ssocreds: fix dropped error#3328

Open
alrs wants to merge 1 commit intoaws:mainfrom
alrs:ssocreds-err
Open

credentials/ssocreds: fix dropped error#3328
alrs wants to merge 1 commit intoaws:mainfrom
alrs:ssocreds-err

Conversation

@alrs
Copy link
Copy Markdown
Contributor

@alrs alrs commented Feb 19, 2026

This fixes a dropped err variable in credentials/ssocreds. Unit tests continue to pass after this change.

@alrs alrs requested a review from a team as a code owner February 19, 2026 17:09
@Madrigal
Copy link
Copy Markdown
Collaborator

I agree that this was likely a miss when it was first implemented.

However, this can have more important consequences, since if an invalid token was received we would have previously ignored the issue and returned a zero-d time and we'd now throw an error on unmarshal.

Have you encountered this in your workflow?

@alrs
Copy link
Copy Markdown
Contributor Author

alrs commented Feb 27, 2026

I haven't run in to this. I go after swallowed errors because of the difficulties they present when trying to debug.

If this is too big a change, I can just turn it into a warning and be rid of os.Exit(1). If that is still a bridge too far, I'm happy to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants