Skip to content

Commit 3d309d5

Browse files
parsonsmattMikolaj
authored andcommitted
Match empty glob result case
1 parent e7aaf60 commit 3d309d5

File tree

1 file changed

+2
-0
lines changed
  • Cabal/src/Distribution/PackageDescription

1 file changed

+2
-0
lines changed

Cabal/src/Distribution/PackageDescription/Check.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,8 @@ checkGlobResult
879879
-- one).
880880
-> [GlobResult FilePath] -- List of glob results.
881881
-> [PackageCheck]
882+
checkGlobResult title fp [] =
883+
[PackageDistSuspiciousWarn $ GlobNoMatch title (prettyShow fp)]
882884
checkGlobResult title fp rs = dirCheck ++ catMaybes (map getWarning rs)
883885
where
884886
dirCheck

0 commit comments

Comments
 (0)