From f32de5df2305fdb1c0f6b0c83e9a86f7a27c2867 Mon Sep 17 00:00:00 2001 From: Jeff Pierson Date: Tue, 13 Mar 2018 00:01:27 -0400 Subject: [PATCH] Add specialized output to guide developer when no modules were compiled. --- src/Report.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Report.hs b/src/Report.hs index 1fd9433..3a5ec33 100644 --- a/src/Report.hs +++ b/src/Report.hs @@ -214,6 +214,7 @@ closeMessage :: Int -> Int -> String closeMessage failures total = case (failures, total) of (0, 1) -> "Success! Compiled 1 module." + (0, 0) -> "No modules were compiled. Try specifying files directly when running elm-make or specify one or more exposed-modules in elm-package.json when building a library." (0, _) -> "Success! Compiled " ++ show total ++ " modules." (1, _) -> "Detected errors in 1 module." (n, _) -> "Detected errors in " ++ show n ++ " modules."