aboutsummaryrefslogtreecommitdiffstats
path: root/app/Comment.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 07:34:55 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 07:35:33 +0100
commit5c9c7b360e4578f3db487e663587194746d0386b (patch)
tree625f7adf8430bf847e7ef760e9403f480619c2a2 /app/Comment.hs
parent19b148277aa5a80bce1c87e33bb857e66698f4eb (diff)
fix: fix `Git.readTextFileOf`
Diffstat (limited to 'app/Comment.hs')
-rw-r--r--app/Comment.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Comment.hs b/app/Comment.hs
index 558778b..5d1c1ef 100644
--- a/app/Comment.hs
+++ b/app/Comment.hs
@@ -59,7 +59,7 @@ getComments commitHash filePath =
. (T.encodeUtf8 . LT.toStrict)
=<< catch
(Git.readTextFileOf commitHash filePath)
- (\(_ :: E.ProcessException) -> pure "")
+ (\(_ :: E.CannotReadFile) -> pure "")
where
language = fromExtension (takeExtension filePath)