Revise some part7 hints

This commit is contained in:
Richard Feldman
2016-09-07 06:04:05 -05:00
parent 0d9c68b006
commit 67f090835f

View File

@@ -136,10 +136,13 @@ update msg model =
HandleSearchError error -> HandleSearchError error ->
-- TODO if decoding failed, store the message in model.errorMessage -- TODO if decoding failed, store the message in model.errorMessage
-- --
-- Hint 1: look for "decode" in the documentation for this union type: -- HINT 1: Remember, model.errorMessage is a Maybe String - so it
-- can only be set to either Nothing or (Just "some string here")
--
-- Hint 2: look for "decode" in the documentation for this union type:
-- http://package.elm-lang.org/packages/evancz/elm-http/latest/Http#Error -- http://package.elm-lang.org/packages/evancz/elm-http/latest/Http#Error
-- --
-- Hint 2: to check if this is working, break responseDecoder -- Hint 3: to check if this is working, break responseDecoder
-- by changing "stargazers_count" to "description" -- by changing "stargazers_count" to "description"
( model, Cmd.none ) ( model, Cmd.none )