Skip to content

Commit

Permalink
rename to chainedErr
Browse files Browse the repository at this point in the history
  • Loading branch information
Thykof committed Dec 19, 2023
1 parent feb50b1 commit c3daac4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/nss/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ func NewManager(dbPath []string, certutil CertUtilServicer, logger Logger) *Mana

// executeOnPaths executes the given operation on each NSS database path.
func (m *Manager) executeOnPaths(operation func(path string) error) error {
var totalErr error
var chainedErr error

for _, path := range m.dbPath {
if err := operation(path); err != nil {
totalErr = fmt.Errorf("%w\n%w", totalErr, err)
chainedErr = fmt.Errorf("%w\n%w", chainedErr, err)
}
}

return totalErr
return chainedErr
}

// AddCA adds the certificate to the NSS databases.
Expand Down

0 comments on commit c3daac4

Please sign in to comment.