summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-07-18 23:26:04 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-07-18 23:26:04 +0200
commit231ce0c27918fa63089f70fbdefab1d57f7374b2 (patch)
tree5c735758161c7188fc7105a769902e979760309f /views
parent919af48c9db5bd53149cb9d9e23378282d1ac9ce (diff)
downloadcollection-json-explorer-231ce0c27918fa63089f70fbdefab1d57f7374b2.tar.gz
collection-json-explorer-231ce0c27918fa63089f70fbdefab1d57f7374b2.tar.bz2
collection-json-explorer-231ce0c27918fa63089f70fbdefab1d57f7374b2.tar.xz
collection-json-explorer-231ce0c27918fa63089f70fbdefab1d57f7374b2.zip
o Better formatting of error messages.
Diffstat (limited to 'views')
-rw-r--r--views/data.jade8
1 files changed, 7 insertions, 1 deletions
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, '&nbsp;')}
+ br
+ else
+ | #{collection.error.message}
else
i Not set