scribe/src/pages/errors/show_page.cr
Edward Loveall f056a0b68a
Better error pages
Instead of showing the default Lucky error page, the styles now match
Scribe. In addition, if a URL can't be parsed, Scribe gives some
information as to why this might be (that Scribe can only deal with an
article pages)
2022-02-12 17:56:36 -05:00

16 lines
244 B
Crystal

class Errors::ShowPage < MainLayout
needs message : String
needs status_code : Int32
def content
h1 status_code
h2 message
article do
para do
a "Try heading back to home", href: "/"
end
end
end
end