git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-50-not-found-wording-2 / test-x-index.js

303 bytesRaw
1'use strict';
2
3var name = 'not-exists';
4var error1, error2;
5
6try {
7 require.resolve(name);
8} catch (e) {
9 error1 = e;
10}
11
12try {
13 require(name);
14} catch (e) {
15 error2 = e;
16}
17
18console.log([
19
20 error1.message.split('\n')[0],
21 error1.code,
22 error2.message.split('\n')[0],
23 error2.code
24
25].join('\n'));
26

Built with git-ssb-web