From e1bcf8ffdd858706f50232896e25ca82ce911517 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 2 Jul 2012 23:17:32 +0200 Subject: o Better error messages when unable to parse JSON. o Fixing typos. --- views/data.jade | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/data.jade b/views/data.jade index 49d0579..78d8b76 100644 --- a/views/data.jade +++ b/views/data.jade @@ -66,7 +66,7 @@ block meta // TODO: Add ability to show the raw part of the collection. block items if collection.items.length == 0 - p Collection has to items. + p Collection has no items. else // p The feed has #{collection.items.length} items. each item, i in collection.items @@ -91,7 +91,7 @@ block items block queries if collection.queries.length == 0 - p Collection has to queries. + p Collection has no queries. else each query in collection.queries - var name = query.prompt || query.name || 'Unnamed query' @@ -155,6 +155,9 @@ block navbar block content if typeof err != 'undefined' + section(id='error') + div(class='page-error') + h1 Error p Error rendering #{url} p= err -- cgit v1.2.3