git ssb

30+

cel / git-ssb-web



Commit 49b9d75d1238284ccbdc490e247b0123993db7c6

Fix error rendering

Charles Lehner committed on 2/25/2016, 3:58:26 AM
Parent: e38fd4b3baa0d3ac6bd66374307a331cef820817

Files changed

index.jschanged
index.jsView
@@ -152,9 +152,9 @@
152152 cb(true)
153153 else if (err) {
154154 ended = true
155155 cb(null,
156- '<h3>' + err.toString() + '</h3>' +
156+ '<h3>' + err.name + '</h3>' +
157157 '<pre>' + escapeHTML(err.stack) + '</pre>')
158158 } else
159159 cb(null, data)
160160 })
@@ -171,9 +171,9 @@
171171 }],
172172 '<!doctype html><html><head><meta charset=utf-8>',
173173 '<title>' + err.name + '</title></head><body>',
174174 '<h1><a href="/">git ssb</a></h1>',
175- '<h2>' + err.toString() + '</h3>' +
175+ '<h2>' + err.name + '</h3>' +
176176 (note ? '<p>' + note + '</p>' : '') +
177177 '<pre>' + escapeHTML(err.stack) + '</pre>' +
178178 '</body></html>'
179179 ])

Built with git-ssb-web