better error handling for this
This commit is contained in:
parent
be1dd411ee
commit
ce0fb7983a
|
@ -199,6 +199,7 @@ routes:
|
||||||
fail()
|
fail()
|
||||||
|
|
||||||
get "/@kind/@id":
|
get "/@kind/@id":
|
||||||
|
try:
|
||||||
var
|
var
|
||||||
title: string = ""
|
title: string = ""
|
||||||
ctx: Context
|
ctx: Context
|
||||||
|
@ -242,5 +243,6 @@ routes:
|
||||||
ctx.pagination(qid, @"kind")
|
ctx.pagination(qid, @"kind")
|
||||||
|
|
||||||
renderMustache(title, browseTemplate, ctx)
|
renderMustache(title, browseTemplate, ctx)
|
||||||
|
except: fail()
|
||||||
|
|
||||||
runForever()
|
runForever()
|
||||||
|
|
Loading…
Reference in New Issue