Skip to content

Commit

Permalink
Merge pull request #1317 from felixfontein/rotate-errors
Browse files Browse the repository at this point in the history
Report key rotation errors
  • Loading branch information
hiddeco authored Oct 9, 2023
2 parents 0fd3c72 + 71b5795 commit 871d10f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/sops/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,11 @@ func main() {
AddMasterKeys: addMasterKeys,
RemoveMasterKeys: rmMasterKeys,
})
// While this check is also done below, the `err` in this scope shadows
// the `err` in the outer scope
if err != nil {
return toExitError(err)
}
}

if c.String("set") != "" {
Expand Down

0 comments on commit 871d10f

Please sign in to comment.