kazuya kawaguchi 8 years ago
committed by Evan You
parent
commit
2f751b5d99
  1. 6
      src/core/util/error.js

6
src/core/util/error.js

@ -2,12 +2,12 @@ import config from '../config'
import { warn } from './debug'
import { inBrowser } from './env'
export function handleError (err, vm, type) {
export function handleError (err, vm, info) {
if (config.errorHandler) {
config.errorHandler.call(null, err, vm, type)
config.errorHandler.call(null, err, vm, info)
} else {
if (process.env.NODE_ENV !== 'production') {
warn(`Error in ${type}:`, vm)
warn(`Error in ${info}:`, vm)
}
/* istanbul ignore else */
if (inBrowser && typeof console !== 'undefined') {

Loading…
Cancel
Save