hide unsupportedOperation error in windows ghcup bin removal in case
of different drives.
This commit is contained in:
parent
8934e0e6bd
commit
2277013c76
@ -1298,7 +1298,9 @@ rmGhcup = do
|
|||||||
-- we move it to temp dir, to be deleted at next reboot
|
-- we move it to temp dir, to be deleted at next reboot
|
||||||
tempDir <- liftIO $ getTemporaryDirectory
|
tempDir <- liftIO $ getTemporaryDirectory
|
||||||
let tempFilepath = tempDir </> ghcupFilename
|
let tempFilepath = tempDir </> ghcupFilename
|
||||||
liftIO $ hideError NoSuchThing $ Win32.moveFileEx ghcupFilepath (Just tempFilepath) 1
|
hideError UnsupportedOperation $
|
||||||
|
liftIO $ hideError NoSuchThing $
|
||||||
|
Win32.moveFileEx ghcupFilepath (Just tempFilepath) 1
|
||||||
#else
|
#else
|
||||||
-- delete it.
|
-- delete it.
|
||||||
hideError doesNotExistErrorType $ liftIO $ rmFile ghcupFilepath
|
hideError doesNotExistErrorType $ liftIO $ rmFile ghcupFilepath
|
||||||
|
Loading…
Reference in New Issue
Block a user