summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzhu yaliang <[email protected]>2024-02-26 14:45:07 +0800
committermouse <[email protected]>2024-03-13 17:31:18 +0800
commit28ec395b81efebb06b7c67c849da14389233c923 (patch)
treebbd6b45986a3b5cf187aac033ccd9852017004b6 /src
parent86a6b6af04e981ed5a4e668dd6fcd78c93ce14be (diff)
downloadengrampa-28ec395b81efebb06b7c67c849da14389233c923.tar.bz2
engrampa-28ec395b81efebb06b7c67c849da14389233c923.tar.xz
fr-process.c: Setting error status
Fix https://github.com/mate-desktop/engrampa/issues/510
Diffstat (limited to 'src')
-rw-r--r--src/fr-process.c5
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;