Skip to content

Instantly share code, notes, and snippets.

@arunredhu
Last active March 18, 2020 13:43
Show Gist options
  • Save arunredhu/dc93aaf547b25630e952a8e62923f766 to your computer and use it in GitHub Desktop.
Save arunredhu/dc93aaf547b25630e952a8e62923f766 to your computer and use it in GitHub Desktop.
Global error handler
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