Commit 49b9d75d1238284ccbdc490e247b0123993db7c6
Fix error rendering
Charles Lehner committed on 2/25/2016, 3:58:26 AMParent: e38fd4b3baa0d3ac6bd66374307a331cef820817
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -152,9 +152,9 @@ | ||
152 | 152 | cb(true) |
153 | 153 | else if (err) { |
154 | 154 | ended = true |
155 | 155 | cb(null, |
156 | - '<h3>' + err.toString() + '</h3>' + | |
156 | + '<h3>' + err.name + '</h3>' + | |
157 | 157 | '<pre>' + escapeHTML(err.stack) + '</pre>') |
158 | 158 | } else |
159 | 159 | cb(null, data) |
160 | 160 | }) |
@@ -171,9 +171,9 @@ | ||
171 | 171 | }], |
172 | 172 | '<!doctype html><html><head><meta charset=utf-8>', |
173 | 173 | '<title>' + err.name + '</title></head><body>', |
174 | 174 | '<h1><a href="/">git ssb</a></h1>', |
175 | - '<h2>' + err.toString() + '</h3>' + | |
175 | + '<h2>' + err.name + '</h3>' + | |
176 | 176 | (note ? '<p>' + note + '</p>' : '') + |
177 | 177 | '<pre>' + escapeHTML(err.stack) + '</pre>' + |
178 | 178 | '</body></html>' |
179 | 179 | ]) |
Built with git-ssb-web