diff options
author | zhu yaliang <[email protected]> | 2024-02-26 14:45:07 +0800 |
---|---|---|
committer | mouse <[email protected]> | 2024-03-13 17:31:18 +0800 |
commit | 28ec395b81efebb06b7c67c849da14389233c923 (patch) | |
tree | bbd6b45986a3b5cf187aac033ccd9852017004b6 | |
parent | 86a6b6af04e981ed5a4e668dd6fcd78c93ce14be (diff) | |
download | engrampa-28ec395b81efebb06b7c67c849da14389233c923.tar.bz2 engrampa-28ec395b81efebb06b7c67c849da14389233c923.tar.xz |
fr-process.c: Setting error status
Fix https://github.com/mate-desktop/engrampa/issues/510
-rw-r--r-- | src/fr-process.c | 5 |
1 files 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; |