[console.error] Unhandled Rejection at: Promise Error: fuubar
at ...feathers/winston-test.js:23:39
at new Promise (<anonymous>)
at ...feathers/winston-test.js:23:9
at Object.<anonymous> (...feathers/winston-test.js:24:3)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47 Promise {
<rejected> Error: fuubar
at ...feathers/winston-test.js:23:39
at new Promise (<anonymous>)
at ...feathers/winston-test.js:23:9
at Object.<anonymous> (...feathers/winston-test.js:24:3)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
}
error: [WINSTON] Unhandled Rejection at: Promise
The default
index.ts
create by feathers cli catches unhandled promises and logs the error using winston which does not output the error nor the stackplain-js testcase:
output
Notice the
[WINSTON]
error-log.