Commit 81785ac357039921e1de71f1df9e2891178e375c
Fix blob not found error
Charles Lehner committed on 3/30/2016, 10:17:40 PMParent: e73d57881b07584706956569ba19f7420a1939ee
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -1298,9 +1298,9 @@ | ||
1298 | 1298 | }) |
1299 | 1299 | } |
1300 | 1300 | |
1301 | 1301 | function serveBlobNotFound(repoId, err) { |
1302 | - return serveTemplate(400, 'Blob not found', pull.values([ | |
1302 | + return serveTemplate('Blob not found', 404, pull.values([ | |
1303 | 1303 | '<h2>Blob not found</h2>', |
1304 | 1304 | '<p>Blob in repo ' + link([repoId]) + ' was not found</p>', |
1305 | 1305 | '<pre>' + escapeHTML(err.stack) + '</pre>' |
1306 | 1306 | ])) |
Built with git-ssb-web