From 231ce0c27918fa63089f70fbdefab1d57f7374b2 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 18 Jul 2012 23:26:04 +0200 Subject: o Better formatting of error messages. --- TODO.md | 3 +++ views/data.jade | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 4b45e26..fcc3e36 100644 --- a/TODO.md +++ b/TODO.md @@ -32,3 +32,6 @@ * BUG: when executing queries, the URL in the "http response" section is not the correct url, it's missing the query parameters. + +* Add an OpenSearch document to the root page so that people can add + the site as an search engine. diff --git a/views/data.jade b/views/data.jade index 948053b..9dd54e4 100644 --- a/views/data.jade +++ b/views/data.jade @@ -220,7 +220,13 @@ block error dt message dd if collection.error.message - | #{collection.error.message} + - var lines = collection.error.message.split('\n') + if lines.length > 1 + for line in lines + | #{line.replace(/ /g, ' ')} + br + else + | #{collection.error.message} else i Not set -- cgit v1.2.3