Better error message on homepage
This commit is contained in:
parent
d6d420ae87
commit
f4e7c77e01
|
@ -197,9 +197,11 @@ viewApps : Model -> Html Msg
|
|||
viewApps model =
|
||||
case model of
|
||||
Failure ->
|
||||
div [ ]
|
||||
[ text "I could not load a random cat for some reason. "
|
||||
, button [ onClick MorePlease ] [ text "Try Again!" ]
|
||||
div []
|
||||
[ div [ class "alert alert-danger" ]
|
||||
[ p [] [ text "Unable to load app data" ]
|
||||
, button [ class "btn btn-danger", onClick MorePlease ] [ text "Try Again!" ]
|
||||
]
|
||||
]
|
||||
|
||||
Loading ->
|
||||
|
|
Loading…
Reference in New Issue