Skip to content

Commit

Permalink
refactor: wording of error message & package vars
Browse files Browse the repository at this point in the history
  • Loading branch information
ravsii committed Feb 4, 2025
1 parent 8d2a9f6 commit 234407b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/cmd/mockery.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,12 @@ func (r *RootApp) Run() error {

// The loop above could exit early, so sometimes warnings won't be shown
// until other errors are fixed
for packageName := range missingMap {
for iface := range missingMap[packageName] {
for packagePath := range missingMap {
for ifaceName := range missingMap[packagePath] {
log.Warn().
Str(logging.LogKeyInterface, iface).
Str(logging.LogKeyPackagePath, packageName).
Msg("no such interface")
Str(logging.LogKeyInterface, ifaceName).
Str(logging.LogKeyPackagePath, packagePath).
Msg("interface not found in source")
}
}

Expand Down

0 comments on commit 234407b

Please sign in to comment.