try { // ...} catch(e) { let url = `https://www.stackoverflow.com/search?q=[js] + ${e.message}`; window.open(url, "_blank");}