better error handling for this

This commit is contained in:
Christine Dodrill 2016-02-06 01:01:15 -08:00
parent be1dd411ee
commit ce0fb7983a
1 changed files with 35 additions and 33 deletions

View File

@ -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()