handle exceptions when cleaning
This commit is contained in:
parent
cb0de49010
commit
611bb89e83
@ -81,8 +81,8 @@ copyToDev file = do
|
|||||||
|
|
||||||
cleanDev :: IO ()
|
cleanDev :: IO ()
|
||||||
cleanDev = do
|
cleanDev = do
|
||||||
exists <- doesDirectoryExist develSrcDir
|
try' $ removeDirectoryRecursive develSrcDir
|
||||||
when exists (removeDirectoryRecursive develSrcDir)
|
return ()
|
||||||
|
|
||||||
try' :: IO x -> IO (Either SomeException x)
|
try' :: IO x -> IO (Either SomeException x)
|
||||||
try' = try
|
try' = try
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user