on master help sign in
fix two exit messages regarding # of input files
commitb355a7492f0861881737fd278db9105580e31986 authorEvan Czaplicki <evancz@users.noreply.github.com> dateMon 1 Jul 2019, 14:01 (7 years ago) parentefb63ca
1 file changed+19−2
builder/src/Reporting/Exit.hs+19−2
builder/src/Reporting/Exit.hs+19−2
@@ -1616,10 +1616,27 @@ makeToReport make =
16161616 ]
16171617
16181618 MakeMultipleFilesIntoHtml ->
1619− error "MakeMultipleFilesIntoHtml"
1619+ Help.report "TOO MANY FILES" Nothing
1620+ (
1621+ "When producing an HTML file, I can only handle one file."
1622+ )
1623+ [ D.fillSep
1624+ ["Switch","to",D.dullyellow "--output=/dev/null","if","you","just","want"
1625+ ,"to","get","compile","errors.","This","skips","the","code","gen","phase,"
1626+ ,"so","it","can","be","a","bit","faster","than","other","options","sometimes."
1627+ ]
1628+ , D.fillSep
1629+ ["Switch","to",D.dullyellow "--output=elm.js","if","you","want","multiple"
1630+ ,"`main`","values","available","in","a","single","JavaScript","file.","Then"
1631+ ,"you","can","make","your","own","customized","HTML","file","that","embeds"
1632+ ,"multiple","Elm","nodes.","The","generated","JavaScript","also","shares"
1633+ ,"dependencies","between","modules,","so","it","should","be","smaller","than"
1634+ ,"compiling","each","module","separately."
1635+ ]
1636+ ]
16201637
16211638 MakeNoMain ->
1622− Help.docReport "NO MAIN" Nothing
1639+ Help.report "NO MAIN" Nothing
16231640 (
16241641 "When producing an HTML file, I require that the given file has a `main` value.\
16251642 \ That way I have something to show on screen!"