2.5.13
Reproduction linkhttps://jsfiddle.net/zr7rz6xh/8/
Steps to reproduceVue.config.errorHandler = function (err, vm, info) {
alert("handler");
};
new Vue({
el: '#app',
mounted: function() {
return new Promise(function(resolve, reject) {
throw new Error('err');
});
}
})
errorHandler should be called
What is actually happening?Uncaught (in promise) Error: err
Vue.config.errorHandler is not called if the error occurs inside a promise or await/async function.
I want to use the created hook with an await call, so it has to be async. But then the errorHandler is ignored.
nemtsov, wspl, andrei-markeev, jpgklassen, entwwwicklung and 7 more
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4