on master help sign in
Make it easier to read the hashes in corrupt zip error
commit6356535314ad3dde38ee06f05dc41fd2cbb26f7a authorEvan Czaplicki <evancz@users.noreply.github.com> dateWed 23 May 2018, 11:52 (8 years ago) parentcabb8b1
1 file changed+8−5
builder/src/Reporting/Exit/Http.hs+8−5
builder/src/Reporting/Exit/Http.hs+8−5
@@ -60,12 +60,15 @@ toReport url exit =
6060 BadZipSha expectedHash actualHash ->
6161 Help.report "CORRUPT ZIP" Nothing "I got an unexpected zip file from:"
6262 [ urlDoc
63+ , D.reflow "I check the hash the zip, and it seems off:"
64+ , D.vcat $ map D.fromString $
65+ [ " Expected: " ++ expectedHash
66+ , " Actual: " ++ actualHash
67+ ]
6368 , D.reflow $
64− "I was expecting the hash of content to be " ++ expectedHash
65− ++ ", but it is " ++ actualHash
66− , D.reflow $
67− "Most likely the package author may have moved the version\
68− \ tag, so report it to them and see if that is the issue."
69+ "This usually means that the package author moved the version\
70+ \ tag, so report it to them and see if that is the issue. Folks\
71+ \ on Elm slack can probably help as well."
6972 ]
7073
7174