Skip to content

Commit

Permalink
Merge pull request #1251 from giuseppe/use-libcrun-make-error
Browse files Browse the repository at this point in the history
features: use exported function libcrun_make_error
  • Loading branch information
flouthoc authored Jul 28, 2023
2 parents 6b95488 + 080e560 commit 4d5100c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oci_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ crun_command_features (struct crun_global_arguments *global_args, int argc, char
// Prepare the JSON output
json_gen = yajl_gen_alloc (NULL);
if (json_gen == NULL)
return crun_make_error (err, errno, "Failed to initialize json structure");
return libcrun_make_error (err, 0, "Failed to initialize json structure");

yajl_gen_config (json_gen, yajl_gen_beautify, 1); // Optional: Enable pretty formatting

Expand Down

0 comments on commit 4d5100c

Please sign in to comment.