on master help sign in
Make error message a bit better

When elm_dependencies.json is not found, give a bit more guidance.

commit0e38c2e8d450570ada492421910d918c69c083bf authorEvan Czaplicki <info@elm-lang.org> dateTue 29 Apr 2014, 20:11 (13 years ago) parentd291190
1 file changed+3−2
compiler/Elm/Internal/Dependencies.hs+3−2
compiler/Elm/Internal/Dependencies.hs+3−2
@@ -131,8 +131,9 @@ withDeps handle path =
131131 case result of
132132 Right bytes -> return bytes
133133 Left _ -> throwError $
134− "could not find file " ++ path ++
135− "\n You may need to create a dependency file for your project."
134+ "could not find " ++ path ++ " file. You may need to create one.\n" ++
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>"
136137
137138depsAt :: FilePath -> ErrorT String IO Deps
138139depsAt = withDeps id