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