This commit is contained in:
Joey Hess 2013-12-30 13:41:11 -04:00
parent 4a36d569c3
commit 0cb1a0a605

View file

@ -69,7 +69,8 @@ withTmpDirIn tmpdir template = bracket create remove
-- after a process has just written to it and exited.
-- Because it's crap, presumably. So, ignore failure
-- to delete the temp directory.
void $ catchIO $ removeDirectoryRecursive d
_ <- tryIO $ removeDirectoryRecursive d
return ()
#else
removeDirectoryRecursive d
#endif