Files: b51d7758237b262870685f4987822ea751f33200 / app / html / error.js
299 bytesRaw
1 | const nest = require('depnest') |
2 | const { h } = require('mutant') |
3 | |
4 | exports.gives = nest('app.html.error') |
5 | |
6 | exports.create = function (api) { |
7 | return nest('app.html.error', error) |
8 | |
9 | function error (err) { |
10 | return h('Error', [ |
11 | h('header', err.message), |
12 | h('pre', err.stack) |
13 | ]) |
14 | } |
15 | } |
16 |
Built with git-ssb-web