Skip to content

Commit

Permalink
utils: report error code for RegQueryValueEx in flb_utils_get_machine…
Browse files Browse the repository at this point in the history
…_id.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Apr 17, 2024
1 parent 8108b72 commit f74c47c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flb_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f74c47c

Please sign in to comment.