on master help sign in
Make error message a bit better
0e38c2eEvan Czaplicki
compiler/Elm/Internal/Dependencies.hs+3−2
@@ -131,8 +131,9 @@ withDeps handle path =
131 case result of
131 case result of
132 Right bytes -> return bytes
132 Right bytes -> return bytes
133 Left _ -> throwError $
133 Left _ -> throwError $
134− "could not find file " ++ path ++
134+ "could not find " ++ path ++ " file. You may need to create one.\n" ++
135− "\n You may need to create a dependency file for your project."
135+ " For an example of how to fill in the dependencies file, check out\n" ++
136+ " <https://github.com/evancz/automaton/blob/master/elm_dependencies.json>"
136
137
137depsAt :: FilePath -> ErrorT String IO Deps
138depsAt :: FilePath -> ErrorT String IO Deps
138depsAt = withDeps id
139depsAt = withDeps id