Skip to content

Commit 83b832f

Browse files
newhoggyMikolaj
authored andcommitted
Print filepath in fromAbsoluteFilePath error
1 parent 745b294 commit 83b832f

File tree

1 file changed

+1
-1
lines changed
  • hackage-security/src/Hackage/Security/Util

1 file changed

+1
-1
lines changed

hackage-security/src/Hackage/Security/Util/Path.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ makeAbsolute (FsPath p) = mkPathNative <$> toAbsoluteFilePath p
295295
fromAbsoluteFilePath :: FilePath -> Path Absolute
296296
fromAbsoluteFilePath fp
297297
| FP.Native.isAbsolute fp = mkPathNative fp
298-
| otherwise = error "fromAbsoluteFilePath: not an absolute path"
298+
| otherwise = error ("fromAbsoluteFilePath: not an absolute path: " <> fp)
299299

300300
{-------------------------------------------------------------------------------
301301
Wrappers around System.IO

0 commit comments

Comments
 (0)