Skip to content

Commit

Permalink
[tiny][pkg/stanza] Name Windows event provider on error msg (open-tel…
Browse files Browse the repository at this point in the history
…emetry#27286)

Name Windows event provider on error msg
  • Loading branch information
pjanotti authored and jmsnll committed Nov 12, 2023
1 parent 8e9e6c1 commit 3592b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/stanza/operator/input/windows/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ func (p *Publisher) Open(provider string) error {

utf16, err := syscall.UTF16PtrFromString(provider)
if err != nil {
return fmt.Errorf("failed to convert provider to utf16: %w", err)
return fmt.Errorf("failed to convert the provider name %q to utf16: %w", provider, err)
}

handle, err := evtOpenPublisherMetadata(0, utf16, nil, 0, 0)
if err != nil {
return fmt.Errorf("failed to open publisher handle: %w", err)
return fmt.Errorf("failed to open the metadata for the %q provider: %w", provider, err)
}

p.handle = handle
Expand Down

0 comments on commit 3592b5c

Please sign in to comment.