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 authored and edsiper committed Aug 27, 2024
1 parent 5ddcc8a commit 03b6fc2
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 03b6fc2

Please sign in to comment.