diff options
author | Joey Hess <joey@kitenet.net> | 2012-08-27 13:52:48 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-08-27 13:52:48 -0400 |
commit | 11c1f32c51707e838dd154afe3d2a1d25e9d18ef (patch) | |
tree | 5aff15be697a85622dcfd98cad07b7fcb975fd8a /Assistant/Threads/Transferrer.hs | |
parent | 2433f6ca5a602f55986bcd85c20034c88cc44a3b (diff) |
improve display of failed transfer alert
Diffstat (limited to 'Assistant/Threads/Transferrer.hs')
-rw-r--r-- | Assistant/Threads/Transferrer.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Assistant/Threads/Transferrer.hs b/Assistant/Threads/Transferrer.hs index ae0adf300..9a772d628 100644 --- a/Assistant/Threads/Transferrer.hs +++ b/Assistant/Threads/Transferrer.hs @@ -96,10 +96,10 @@ transferThread dstatus slots t info runner program = case (transferRemote info, (_, _, _, pid) <- createProcess (proc program $ toCommand params) { create_group = True } - status <- waitForProcess pid + ok <- (==) ExitSuccess <$> waitForProcess pid addAlert dstatus $ - makeAlertFiller (status == ExitSuccess) $ - transferFileAlert direction file + makeAlertFiller ok $ + transferFileAlert direction ok file where params = [ Param "transferkey" |