Skip to content

Commit

Permalink
Added insytructions on where to go next after an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
daveverwer committed Sep 6, 2021
1 parent 2186a1e commit cbc8860
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Sources/App/Views/Error/ErrorPage+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,20 @@ enum ErrorPage {
.section(
.class("error_message"),
.h4(.text(model.errorMessage)),
model.errorInstructions
model.errorInstructions,
.p(
.text("From here, you'll want to "),
.a(
.href(SiteURL.home.relativeURL()),
"go to the home page"
),
.text(" or "),
.a(
.href(SiteURL.search.relativeURL()),
"search for a package"
),
.text(".")
)
)
}

Expand Down

0 comments on commit cbc8860

Please sign in to comment.