Skip to content

Commit b0bb752

Browse files
committed
Add more context to error cases
1 parent db75653 commit b0bb752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/Streamly/Internal/FileSystem/Posix/ReadDir.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ gstatDname followSym parent dname = do
153153
x | x == 0 -> pure (False, False)
154154
-- XXX Need to check if and how we should handle some errors
155155
-- like EACCES.
156-
_ -> throwErrno "checkIfDirectory"
156+
_ -> throwErrno ("gstatDname: " ++ Path.toString path)
157157

158158
-- | Checks if dname is a directory and additionaly returns if dname is a meta
159159
-- directory.

0 commit comments

Comments
 (0)