git ssb

0+

cel-desktop / ssb-pkg



Tree: ca90b5ca0579ebdcc0635288bce4978e3fb200f5

Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / 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