Skip to content
Snippets Groups Projects
Commit 2277013c authored by Arjun Kathuria's avatar Arjun Kathuria :rocket:
Browse files

hide unsupportedOperation error in windows ghcup bin removal in case

of different drives.
parent 8934e0e6
No related branches found
No related tags found
No related merge requests found
......@@ -1298,7 +1298,9 @@ rmGhcup = do
-- we move it to temp dir, to be deleted at next reboot
tempDir <- liftIO $ getTemporaryDirectory
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
-- delete it.
hideError doesNotExistErrorType $ liftIO $ rmFile ghcupFilepath
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment