Skip to content

Commit

Permalink
Report key rotation errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein committed Oct 8, 2023
1 parent 0fd3c72 commit 71b5795
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 71b5795

Please sign in to comment.