Skip to content

Commit c76acf6

Browse files
committed
fix error message when multiple srcDirs are missing
1 parent 2d66577 commit c76acf6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builder/src/Reporting/Exit.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,8 @@ toOutlineReport problem =
987987
_:_ ->
988988
Help.report "MISSING SOURCE DIRECTORIES" (Just "elm.json")
989989
"I need a valid elm.json file, but the \"source-directories\" field lists the following directories:"
990-
[ D.indent 4 $ D.dullyellow $ D.fromChars dir
990+
[ D.indent 4 $ D.vcat $
991+
map (D.dullyellow . D.fromChars) (dir:dirs)
991992
, D.reflow $
992993
"I cannot find them though. Are they missing? Are there typos?"
993994
]

0 commit comments

Comments
 (0)