Last active
March 18, 2020 13:43
-
-
Save arunredhu/dc93aaf547b25630e952a8e62923f766 to your computer and use it in GitHub Desktop.
Global error handler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vue from 'vue'; | |
Vue.config.errorHandler = (err, vm, info) => { | |
// err: error trace | |
// vm: component in which error occured | |
// info: Vue specific error information such as lifecycle hooks, events etc. | |
// TODO: Perform any custom logic or log to server | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment