From 34bc8619ec519661e2da7b0f6ba8c2474a10f6a1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 15 Apr 2025 17:05:32 +0000 Subject: [PATCH] build: Log a better message when a build has been interrupted Signed-off-by: Michael Tremer --- src/pakfire/build.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/pakfire/build.c b/src/pakfire/build.c index 1d1dfe51..6fca0b7e 100644 --- a/src/pakfire/build.c +++ b/src/pakfire/build.c @@ -1415,8 +1415,15 @@ static int pakfire_build_stage(struct pakfire_build* build, // Run the script r = pakfire_jail_exec_script(build->jail, script, strlen(script), NULL, env, NULL, NULL, pakfire_build_output_callback, build); - if (r) - ERROR(build->ctx, "Build stage '%s' failed with status %d\n", stage, r); + switch (r) { + case 130: + ERROR(build->ctx, "The build has been interrupted\n"); + break; + + default: + ERROR(build->ctx, "Build stage '%s' failed with status %d\n", stage, r); + break; + } ERROR: if (env) -- 2.39.5