We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 95861f3 + 202984e commit 522d35aCopy full SHA for 522d35a
1 file changed
examples/custom_file_provider/custom_file_provider.c
@@ -62,7 +62,8 @@ static umf_result_t file_init(void *params, void **provider) {
62
// Open the file
63
file_provider->fd = open(file_params->filename, O_RDWR | O_CREAT, 0666);
64
if (file_provider->fd < 0) {
65
- perror("Failed to open file");
+ perror("open()");
66
+ fprintf(stderr, "Failed to open the file: %s\n", file_params->filename);
67
ret = UMF_RESULT_ERROR_INVALID_ARGUMENT;
68
goto cleanup_malloc;
69
}
0 commit comments