mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-08 07:29:08 +03:00
Handle error case.
This commit is contained in:
parent
d1539e1b73
commit
33dd1814a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user