From 28ec395b81efebb06b7c67c849da14389233c923 Mon Sep 17 00:00:00 2001 From: zhu yaliang Date: Mon, 26 Feb 2024 14:45:07 +0800 Subject: fr-process.c: Setting error status Fix https://github.com/mate-desktop/engrampa/issues/510 --- src/fr-process.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/fr-process.c b/src/fr-process.c index 56a1ddb..7876190 100644 --- a/src/fr-process.c +++ b/src/fr-process.c @@ -842,10 +842,9 @@ check_child (gpointer data) process->error.type = FR_PROC_ERROR_NONE; else if (WEXITSTATUS (status) == 255) process->error.type = FR_PROC_ERROR_COMMAND_NOT_FOUND; - else { + else process->error.type = FR_PROC_ERROR_COMMAND_ERROR; - process->error.status = WEXITSTATUS (status); - } + process->error.status = WEXITSTATUS (status); } else { process->error.type = FR_PROC_ERROR_EXITED_ABNORMALLY; -- cgit v1.2.1