Skip to content

Commit 1f7b794

Browse files
authored
Merge pull request #1872 from eriksjolund/candidate/create-missing-error
container: add missing crun_make_error
2 parents 92977c0 + 05b9f56 commit 1f7b794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcrun/container.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3607,7 +3607,7 @@ exec_process_entrypoint (libcrun_context_t *context,
36073607

36083608
ret = clearenv ();
36093609
if (UNLIKELY (ret < 0))
3610-
return ret;
3610+
return crun_make_error (err, errno, "clearenv");
36113611

36123612
if (process->env_len)
36133613
{
@@ -3772,7 +3772,7 @@ exec_process_entrypoint (libcrun_context_t *context,
37723772
exec_path,
37733773
process->args);
37743774
if (UNLIKELY (ret < 0))
3775-
return ret;
3775+
return crun_make_error (err, -ret, "exec container process failed with handler as `%s`", custom_handler->vtable->name);
37763776

37773777
_exit (EXIT_FAILURE);
37783778
}

0 commit comments

Comments
 (0)