Better error message on homepage

This commit is contained in:
3wc 2021-04-24 16:12:56 +02:00
parent d6d420ae87
commit f4e7c77e01
1 changed files with 5 additions and 3 deletions

View File

@ -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 ->