Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Jun 22, 2020
1 parent 0f317df commit f48e268
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Development/IDE/Core/FileStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ getModificationTimeRule vfs =
`catch` \(e :: IOException) -> do
let err | isDoesNotExistError e = "File does not exist: " ++ file'
| otherwise = "IO error while reading " ++ file' ++ ", " ++ displayException e
(fp, _, d) = ideErrorText file (T.pack err)
showDiag = if missingFileDiags then ShowDiag else HideDiag
diag = (fp, showDiag, d)
return (Nothing, ([diag], Nothing))
diag = ideErrorText file (T.pack err)
if isDoesNotExistError e && not missingFileDiags
then return (Nothing, ([], Nothing))
else return (Nothing, ([diag], Nothing))
where
-- Dir.getModificationTime is surprisingly slow since it performs
-- a ton of conversions. Since we do not actually care about
Expand Down

0 comments on commit f48e268

Please sign in to comment.