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