f056a0b68a
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)
16 lines
244 B
Crystal
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
|