Most productive exception handling ever on Node.js
Redirect to StackOverflow when get exceptions to find solution of error messages
Dec 13, 2021
const url = `http://stackoverflow.com/search?q=[js]'${error.message}'`;require(‘child_process’).exec(`firefox ${url}`)

// Most productive exception handling ever on Node.jsconst url = `http://stackoverflow.com/search?q=[js]'${error.message}'`;
// firefox on linux
require('child_process').exec(`firefox ${url}`);
// chrome on linux
require('child_process').exec(`google-chrome --no-sandbox ${url}`);
// chrome on MacOSX
require('child_process').exec(`open -a "Google Chrome" ${url}`);
// microsoft-edge on Windows
require('child_process').exec(`start microsoft-edge:${url}`);