How to use the WError function from verror
Find comprehensive JavaScript verror.WError code examples handpicked from public code repositorys.
GitHub: mozilla/fxa
240 241 242 243 244 245 246 247 248 249
assert.strictEqual(error1, cause); }); it('determines cause of nested WError', async () => { const error1 = new Error('BOOM'); const error2 = new verror.WError(error1); const error3 = new verror.WError(error2); const cause = getRootCause(error3); assert.strictEqual(error1, cause); });
207
490
0
+ 39 other calls in file
verror.VError is the most popular function in verror (185 examples)