From 3592b5c9477eab15f0158b03260055e07f60954d Mon Sep 17 00:00:00 2001 From: Paulo Janotti Date: Mon, 2 Oct 2023 06:55:42 -0700 Subject: [PATCH] [tiny][pkg/stanza] Name Windows event provider on error msg (#27286) Name Windows event provider on error msg --- pkg/stanza/operator/input/windows/publisher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/stanza/operator/input/windows/publisher.go b/pkg/stanza/operator/input/windows/publisher.go index 8c6397333797..dc6e8668063c 100644 --- a/pkg/stanza/operator/input/windows/publisher.go +++ b/pkg/stanza/operator/input/windows/publisher.go @@ -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