From f74c47c7dae41963cd3c291073d4771c1f7b7c32 Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Wed, 17 Apr 2024 17:00:13 -0400 Subject: [PATCH] utils: report error code for RegQueryValueEx in flb_utils_get_machine_id. Signed-off-by: Phillip Whelan --- src/flb_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/flb_utils.c b/src/flb_utils.c index b6e8d0537e9..10c37912127 100644 --- a/src/flb_utils.c +++ b/src/flb_utils.c @@ -1426,6 +1426,9 @@ int flb_utils_get_machine_id(char **out_id, size_t *out_size) *out_size = dwBufSize-1; return 0; } + else { + flb_error("unable to retrieve MachineGUID, error code: %d", status); + } #elif defined (FLB_SYSTEM_MACOS) bool bret; CFStringRef serialNumber;