diff --git a/client/js/vue.js b/client/js/vue.js index 3727666b..872d1c37 100644 --- a/client/js/vue.js +++ b/client/js/vue.js @@ -53,6 +53,11 @@ const vueApp = new Vue({ }, }); +Vue.config.errorHandler = function(e) { + console.error(e); // eslint-disable-line + vueApp.currentUserVisibleError = `Vue error: ${e.message}. Please check devtools and report it in #thelounge`; +}; + function findChannel(id) { for (const network of vueApp.networks) { for (const channel of network.channels) {