Handle error case.

This commit is contained in:
Dillon Kearns 2021-06-08 11:29:43 -07:00
parent d1539e1b73
commit 33dd1814a9

View File

@ -940,15 +940,10 @@ nextStepToEffect contentCache config model ( updatedStaticResponsesModel, nextSt
[ error ] |> ToJsPayload.Errors |> Effect.SendJsData
Ok (Just notFoundReason) ->
let
prerenderedRoutes : List String
prerenderedRoutes =
[ "TODO - get routes" ]
in
render404Page config model payload.path notFoundReason
Err error ->
Debug.todo ""
[] |> ToJsPayload.Errors |> Effect.SendJsData
RenderRequest.NotFound path ->
render404Page config model path NotFoundReason.NoMatchingRoute