git ssb

0+

cel-desktop / ssb-pkg



Tree: d456a6cc8589489e558e6164750474ed2cfc961e

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