@@ -19,13 +19,13 @@ import qualified Reporting.Exit.Help as Help
1919
2020
2121data Exit
22− = CorruptVersionCache Pkg.Name
22+ = CorruptVersionCache FilePath Pkg.Name
2323 | PackageNotFound Pkg.Name [Pkg.Name]
2424 -- verify
2525 | AppBadElm Pkg.Version
2626 | PkgBadElm Con.Constraint
2727 | BadDeps
28− | BuildFailure Pkg.Name Pkg.Version
28+ | BuildFailure FilePath Pkg.Name Pkg.Version
2929
3030
3131
@@ -35,13 +35,13 @@ data Exit
3535toReport :: Exit -> Help.Report
3636toReport exit =
3737 case exit of
38− CorruptVersionCache pkg ->
38+ CorruptVersionCache elmHome pkg ->
3939 Help.report "CORRUPT CACHE" Nothing
4040 ( "I ran into an unknown package while exploring dependencies:"
4141 )
4242 [ D.indent 4 $ D.dullyellow $ D.fromString $ Pkg.toString pkg
4343 , D.reflow $
44− "This suggests that your ELM_HOME directory has been corrupted.\
44+ "This suggests that your " ++ elmHome ++ " directory has been corrupted.\
4545 \ Maybe some program is messing with it? It is just cached files,\
4646 \ so you can delete it and see if that fixes the issue."
4747 ]
@@ -94,11 +94,13 @@ toReport exit =
9494 \ you are running into something that seems trickier than this."
9595 ]
9696
97− BuildFailure pkg vsn ->
97+ BuildFailure elmHome pkg vsn ->
9898 Help.report "CORRUPT DEPENDENCY" Nothing
9999 "I ran into a problem while building the following package:"
100− [ D.indent 4 $ D.dullyellow $ D.fromString $ Pkg.toString pkg ++ " " ++ Pkg.versionToString vsn
101− , D.reflow $
102− "This probably means the downloaded files got corrupted somehow.\
103− \ Maybe try deleting your ELM_HOME and see if that resolves the issue?"
100+ [ D.indent 4 $ D.red $ D.fromString $ Pkg.toString pkg ++ " " ++ Pkg.versionToString vsn
101+ , D.fillSep
102+ ["This","probably","means","the","downloaded","files","got","corrupted","somehow."
103+ ,"Try","deleting",D.dullyellow (D.fromString elmHome),"(a","directory","for"
104+ ,"caching","build","artifacts)","and","see","if","that","resolves","the","issue."
105+ ]
104106 ]