Skip to content

Commit 2f751b5

Browse files
kazuponyyx990803
authored andcommitted
refactor argument name (#5026)
NOTE: related docs: vuejs/v2.vuejs.org#787 adjust to flowtype definition https://github.com/vuejs/vue/blob/dev/src/core/config.js#L12
1 parent 59867ec commit 2f751b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/util/error.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import config from '../config'
22
import { warn } from './debug'
33
import { inBrowser } from './env'
44

5-
export function handleError (err, vm, type) {
5+
export function handleError (err, vm, info) {
66
if (config.errorHandler) {
7-
config.errorHandler.call(null, err, vm, type)
7+
config.errorHandler.call(null, err, vm, info)
88
} else {
99
if (process.env.NODE_ENV !== 'production') {
10-
warn(`Error in ${type}:`, vm)
10+
warn(`Error in ${info}:`, vm)
1111
}
1212
/* istanbul ignore else */
1313
if (inBrowser && typeof console !== 'undefined') {

0 commit comments

Comments
 (0)